/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
    visibility: visible;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 400;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    font-weight: 300;
}

.accent {
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ffffff;
    color: #0a0a0a;
}

.btn-linkedin {
    background-color: #0077B5;
    border: 2px solid #0077B5;
    color: white;
}

.btn-linkedin:hover {
    background-color: transparent;
    color: #0077B5;
    border-color: #0077B5;
}

.btn.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn.btn-secondary i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Resume button hover effect */
.btn.btn-secondary:hover i {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Enhanced Header Styles */
.elegant-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 0;
    background-color: rgba(10, 10, 10, 0.85);
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.elegant-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elegant-header .logo-text {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    font-family: 'Bodoni Moda', serif;
}

.elegant-header .logo-line {
    height: 18px;
    width: 1px;
    background-color: white;
    transform: rotate(20deg);
}

.elegant-header .nav-links {
    display: flex;
    gap: 30px;
    transition: all 0.3s ease;
}

.elegant-header .nav-link {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    font-weight: 300;
}

.elegant-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.elegant-header .nav-link:hover::after {
    width: 100%;
}

/* Header scroll behavior */
.elegant-header.scrolled {
    padding: 12px 0;
    background-color: rgba(0, 0, 0, 0.95);
}

/* Hero Section - Exact Match Styling */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #000000;
    min-height: 100vh;
    width: 100%;
    /* Add padding-top to account for fixed header */
    padding-top: 80px;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

/* Hero Content - Enhanced centering styles */
.hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.hero-content h1 {
    margin-bottom: 30px;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 .logo-text {
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 300;
    max-width: 600px;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

/* Fashion Navigation */
.fashion-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.close-icon {
    color: #FF4500;
    font-size: 24px;
    text-decoration: none;
    font-weight: 300;
}

.fashion-nav .nav-links {
    display: flex;
    gap: 30px;
}

.fashion-nav .nav-link {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.fashion-nav .nav-link:hover {
    color: #FF4500;
}

.fashion-nav .nav-link.active {
    color: #FF4500;
}

/* Designer Info */
.designer-info {
    position: absolute;
    top: 80px;
    left: 40px;
    z-index: 10;
    max-width: 360px;
}

.designer-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1;
}

.designer-tagline {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin-top: 5px;
    max-width: 300px;
}

/* Fashion Grid Layout */
.fashion-grid {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.grid-panel {
    position: relative;
    overflow: hidden;
    height: 100vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left Panel */
.left-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-panel .panel-image {
    object-position: center center;
}

/* Right Panel */
.right-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-panel .panel-image {
    object-position: center center;
}

/* Ensure images fill the panels with matching proportions to reference */
.grid-panel img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100vh;
}

/* Collection text positioning */
.year-label {
    position: absolute;
    top: 30%;
    left: 40px;
    color: #FF4500;
    font-size: 14px;
    z-index: 5;
    transform: rotate(-90deg);
    transform-origin: left center;
    display: flex;
    align-items: center;
}

.collection-label {
    position: absolute;
    bottom: 35%;
    left: 70px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 5;
    transform: rotate(-90deg);
    transform-origin: left center;
}

/* Center Panel */
.center-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    position: relative;
}

.fashion-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    position: relative;
    z-index: 5;
    width: 100%;
}

.fashion-text {
    font-size: 140px;
    line-height: 0.8;
    font-weight: 800;
    color: #FF4500;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.02em;
}

.portfolio-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 80px;
    color: #fff;
    line-height: 0.8;
    margin-top: -10px;
    margin-left: 150px;
    align-self: flex-end;
}

.collab-container {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.collab-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.year {
    color: #FF4500;
    font-size: 14px;
    margin-bottom: 5px;
}

.collab-label {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.collab-subtitle {
    color: #aaa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.play-circle::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.play-icon {
    color: #FF4500;
    font-size: 12px;
}

.play-circle:hover {
    border-color: #FF4500;
    transform: scale(1.1);
}

/* Responsive Hero */
@media (max-width: 1200px) {
    .fashion-text {
        font-size: 100px;
    }
    
    .portfolio-text {
        font-size: 60px;
        margin-left: 100px;
    }
}

@media (max-width: 992px) {
    .fashion-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .left-panel, .right-panel {
        height: 300px;
    }
    
    .designer-info {
        position: relative;
        top: 80px;
        left: 20px;
        padding: 20px;
    }
    
    .year-label, .collection-label {
        transform: none;
        left: 20px;
    }
    
    .collection-label {
        bottom: 20px;
    }
    
    .fashion-text {
        font-size: 80px;
    }
    
    .portfolio-text {
        font-size: 40px;
        margin-left: 60px;
    }
}

@media (max-width: 768px) {
    .fashion-nav {
        padding: 15px;
    }
    
    .fashion-nav .nav-links {
        gap: 15px;
    }
    
    .fashion-nav .nav-link {
        font-size: 12px;
    }
    
    .designer-name {
        font-size: 2rem;
    }
    
    .fashion-text {
        font-size: 60px;
    }
    
    .portfolio-text {
        font-size: 36px;
        margin-left: 40px;
    }

    .hero-subtitle {
        font-size: 0.95rem;  /* Reduced from 1.2rem for mobile */
        margin-bottom: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        /* Ensure proper spacing from header */
        margin-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;  /* Even smaller for very small devices */
        margin-bottom: 10px;
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Critical mobile hero fixes for social icon visibility */
    .hero {
        min-height: 100vh;
        padding-top: 180px;
        padding-bottom: 80px;
        /* Ensure proper spacing for devices with safe areas */
        padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom, 0px)));
    }
    
    .hero-content {
        top: 52%;
        padding-bottom: 60px;
        /* Add safe area for devices with notches */
        padding-bottom: max(60px, env(safe-area-inset-bottom, 20px));
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }
    
    .social-link {
        font-size: 12px;
    }
    
    /* Make social icons larger and more visible on mobile */
    .social-icons {
        gap: 25px;
        margin-top: 25px;
        margin-bottom: 30px;
        /* Ensure icons stay within viewport */
        padding-bottom: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        /* Ensure proper minimum touch targets */
        min-width: 50px;
        min-height: 50px;
        /* Add subtle shadow for better visibility */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #111111;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 30px;
}

.about-image {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: #cccccc;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.filter-button {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.filter-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.filter-button:hover, 
.filter-button.active {
    color: #ffffff;
}

.filter-button:hover::after,
.filter-button.active::after {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-image.error {
    opacity: 0.7;
}

.image-error-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 14px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image.error ~ .image-error-text {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.portfolio-category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #cccccc;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.portfolio-year {
    font-size: 14px;
    color: #cccccc;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #1a1a1a;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}

.modal-info {
    padding: 40px 40px 40px 10px;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-desc {
    margin-bottom: 30px;
    color: #cccccc;
}

.modal-meta {
    margin-bottom: 30px;
}

.modal-meta-item {
    margin-bottom: 10px;
}

.modal-meta-label {
    font-weight: 600;
    display: inline-block;
    width: 100px;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-pill {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 4px;
    font-size: 14px;
}

.modal-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #111;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #1a1a1a;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4caf50;
    padding: 15px;
    margin-top: 20px;
}

.form-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #f44336;
    padding: 15px;
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* reCAPTCHA styles */
.g-recaptcha {
    margin-bottom: 20px;
}

/* Adjust reCAPTCHA on dark theme */
.g-recaptcha iframe {
    border-radius: 4px;
    background-color: #ffffff;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 14px;
    color: #cccccc;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 2rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
    font-family: 'Bodoni Moda', serif;
}

.loading-runway {
    margin-top: 40px;
    position: relative;
    width: 200px;
    height: 2px;
    background-color: rgba(255,255,255,0.3);
    overflow: hidden;
}

.runway-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transform: translateX(-100%);
    animation: runway 2s infinite;
}

.runway-model {
    position: absolute;
    top: -8px;
    left: 0;
    width: 8px;
    height: 18px;
    background-color: white;
    transform: translateX(-100%);
    animation: model 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes runway {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes model {
    0% { transform: translateX(-10px); }
    100% { transform: translateX(210px); }
}

/* Responsive */
@media (max-width: 992px) {
    .about-content,
    .contact-content,
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .modal-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        height: 350px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        display: flex;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-link {
        padding: 15px 0;
        width: 100%;
        text-align: center;
        font-size: 16px;
    }
    
    .hero {
        padding-top: 150px;
        min-height: 100vh;
        /* Ensure enough space for larger social icons */
        padding-bottom: 60px;
    }
    
    .hero-content {
        padding: 0 20px;
        /* Adjust positioning to be below header but above bottom */
        top: 56%;
        padding-bottom: 40px;
    }
    
    .button-group {
        margin-bottom: 25px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        height: 300px;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .contact-content {
        padding: 0 20px;
    }
    
    .footer-logo {
        font-size: 1.2rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Improve social icons visibility on tablets and larger mobile screens */
    .social-icons {
        gap: 20px;
        margin-top: 28px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        /* Ensure proper spacing from header */
        margin-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;  /* Even smaller for very small devices */
        margin-bottom: 10px;
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Critical mobile hero fixes for social icon visibility */
    .hero {
        min-height: 100vh;
        padding-top: 180px;
        padding-bottom: 80px;
        /* Ensure proper spacing for devices with safe areas */
        padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom, 0px)));
    }
    
    .hero-content {
        top: 52%;
        padding-bottom: 60px;
        /* Add safe area for devices with notches */
        padding-bottom: max(60px, env(safe-area-inset-bottom, 20px));
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }
    
    .social-link {
        font-size: 12px;
    }
    
    /* Make social icons larger and more visible on mobile */
    .social-icons {
        gap: 25px;
        margin-top: 25px;
        margin-bottom: 30px;
        /* Ensure icons stay within viewport */
        padding-bottom: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        /* Ensure proper minimum touch targets */
        min-width: 50px;
        min-height: 50px;
        /* Add subtle shadow for better visibility */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .hero {
        padding-top: 200px;
    }
    
    .hero-content {
        top: 54%;
    }
    
    h1 {
        margin-top: 30px;
        font-size: 1.8rem;
    }
}

.email-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.email-link:hover {
    color: #cccccc;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.email-link:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    /* Better touch targets for mobile */
    min-width: 44px;
    min-height: 44px;
}

.social-icon.linkedin {
    background-color: #0077B5;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon .icon {
    font-weight: bold;
}

/* Enhanced PDF Styling */
.modal-pdfs {
    margin-top: 30px;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pdf-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.pdf-thumbnail {
    height: 120px;
    background-color: rgba(255, 87, 87, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-thumbnail i {
    font-size: 48px;
    color: white;
}

.pdf-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pdf-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
    display: block;
    color: #ffffff;
}

.pdf-description {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
    flex-grow: 1;
}

.pdf-view-btn {
    display: inline-block;
    text-align: center;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.pdf-view-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Make PDF grid responsive */
@media (max-width: 768px) {
    .pdf-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-up-1.active {
    transition-delay: 0.1s;
}

.fade-up-2.active {
    transition-delay: 0.3s;
}

.fade-up-3.active {
    transition-delay: 0.5s;
}

.fade-up-4.active {
    transition-delay: 0.7s;
}

/* PDF viewer button styling */
.pdf-note {
    font-size: 0.85rem;
    margin-top: 8px;
    color: #999;
    font-style: italic;
}

.btn.primary-btn i {
    margin-right: 8px;
}

/* Logo and Udita Kapoor Text Styling */
.logo-text, 
.loading-logo, 
.footer-logo,
.hero-content h1 .logo-text {
    font-family: 'Bodoni Moda', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    display: block;
}

.hero-content h1 {
    margin-bottom: 30px;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 300;
    max-width: 600px;
    text-align: center;
}

.designer-title {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.resume-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 75vh;
    padding: 20px 0;
}

.resume-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    object-fit: contain;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    border-radius: 4px;
}

/* Modal header adjustments for resume */
#resumeModal .modal-header {
    text-align: center;
}

#resumeModal .modal-content {
    max-width: 800px;
    background-color: #0a0a0a;
}

/* Responsive adjustments for resume */
@media (max-width: 768px) {
    .resume-container {
        max-height: 80vh;
        padding: 10px 0;
    }
    
    .resume-image {
        max-width: 95%;
    }
}

/* Resume Modal Styling - Fullscreen */
#resumeModal.modal {
    background-color: rgba(0, 0, 0, 0.95);
}

#resumeModal .modal-content {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background-color: #0a0a0a;
}

#resumeModal .modal-header {
    text-align: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#resumeModal .modal-body {
    flex: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.resume-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: auto;
}

.resume-image {
    max-width: 900px;
    width: auto;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    border-radius: 4px;
}

/* Mobile adjustments for resume */
@media (max-width: 992px) {
    .resume-image {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .resume-container {
        padding: 15px;
    }
    
    .resume-image {
        max-width: 100%;
    }
}

#resumeModal .modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

#resumeModal .modal-close {
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1100;
}

#resumeModal .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

/* Ensure resume has high contrast for readability */
.resume-image {
    background-color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Zoom effect for mobile viewing */
@media (max-width: 768px) {
    .resume-container {
        align-items: flex-start;
    }
    
    .resume-image {
        cursor: zoom-in;
        transition: transform 0.3s ease;
    }
    
    .resume-image:active {
        transform: scale(1.5);
        cursor: zoom-out;
    }
}