/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: url("assets/images/background.jpeg") no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 40px 0;
}

/* Header */
.main-header {
    background-color: #0e0e0e;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007acc;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0;
    background-color: #1e1e1e;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
}

/* General Section */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f5f5f5;
}

.project {
    background-color: #1c1c1c;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #007acc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Skills List */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.skills-list li {
    background: #005f99;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Footer */
.footer {
    background-color: #0e0e0e;
    color: #888;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    align-items: center;
}

.social-icon {
    width: 25px;
    height: 25px;
    display: inline-block;
    border: none;
    text-decoration: none;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.project-card {
    width: 500px;
    background-color: #1c1c1c;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.3s ease;
}

.project-preview video {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 2px solid #444;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.project-tech {
    font-size: 1rem;
    padding: 10px;
}

.project-card.active {
    transform: translateY(-8px) scale(1.05);
    width: 60vw;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.project-card.active .project-preview video {
    filter: brightness(1.1);
    transform: scale(1.05);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card.active .project-tech {
    background-color: #2c2c2c;
}

/* Ensure no hover-based enlargement remains */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-preview video {
    filter: brightness(1.05);
}

.project-card:hover .project-tech {
    background-color: #232323;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.video-overlay video {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.video-overlay.hidden {
    display: none;
}