/* Global Styles */
:root {
    --primary-color: #c8ad9c; /* Changed from gold to #c8ad9c */
    --secondary-color: #b09688; /* Darker shade of primary color */
    --accent-color: #d6c7bc; /* Lighter shade of primary color */
    --dark-color: #121212; /* Very Dark Gray/Black */
    --darker-color: #000000; /* Pure Black */
    --light-color: #f5f5f5; /* Off-White */
    --text-color: #ffffff; /* White */
    --background-color: #121212; /* Very Dark Gray/Black */
    --card-background: #1e1e1e; /* Slightly Lighter Black */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sauce', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(to bottom, #4d4d4d, #2d2d2d, #1a1a1a, #000000);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: 'Open Sauce', 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-color);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--darker-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--darker-color);
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title h3 {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    color: var(--primary-color);
}

.section-header.centered {
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Open Sauce', 'Playfair Display', serif;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
}

/* About Section */
.about {
    background-color: transparent;
    padding-top: 100px; /* Added padding to account for removed hero section */
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 3rem;
    align-items: flex-start; /* Changed from center to flex-start to align with text */
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
    height: 100%; /* Make image container take full height */
}

.about-image img {
    width: 100%;
    height: 100%; /* Make image fill container */
    object-fit: cover; /* Maintain aspect ratio while filling */
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.detail h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detail ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.detail ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.resume-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--darker-color);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.resume-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    background-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--card-background);
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
}

.portfolio-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.portfolio-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    flex-grow: 1;
}

.project-link-container {
    margin-top: auto;
    text-align: center;
}

/* Video Section */
.video {
    background-color: transparent;
}

.video-container {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--primary-color);
}

.video-placeholder {
    background-color: var(--card-background);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 10px;
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-placeholder p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.video-upload {
    display: none;
}

#intro-video {
    /* width: 100%; */
    border-radius: 10px;
    max-width: 400px;
}

/* References Section */
.references {
    background-color: transparent;
}

.references-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.reference {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--card-background);
    border: 1px solid var(--primary-color);
    height: 100%;
}

.reference:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
}

.reference-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reference-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reference-position {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    opacity: 0.8;
}

.reference-date {
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.reference-text {
    color: var(--text-color);
    flex-grow: 1;
}

.reference-text p {
    margin-bottom: 1rem;
}

.reference-text p:last-child {
    margin-bottom: 0;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    overflow-y: auto;
}

.popup-content {
    position: relative;
    background-color: var(--card-background);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--primary-color);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--primary-color);
}

.popup-header {
    margin-bottom: 1.5rem;
}

.popup-header h3 {
    color: var(--primary-color);
}

.popup-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.synopsis-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.synopsis-section p {
    color: var(--text-color);
}

.file-viewer {
    width: 100%;
    height: 400px;
}

#popup-file {
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: var(--darker-color);
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: rgba(0, 0, 0, 0.95);
        height: calc(100vh - 70px);
        width: 50%;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 2rem 0;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .popup-body {
        grid-template-columns: 1fr;
    }
    
    .file-viewer {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        width: 70%;
    }
    
    .portfolio-grid,
    .references-container {
        grid-template-columns: 1fr;
    }
}

/* Font loading for Open Sauce */
@font-face {
    font-family: 'Open Sauce';
    src: url('https://fonts.cdnfonts.com/css/open-sauce-one') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sauce';
    src: url('https://fonts.cdnfonts.com/css/open-sauce-one') format('woff2');
    font-weight: 700;
    font-style: normal;
}