:root {
    /* Primary Colors */
    --primary: #f46b6b;          /* Main orange-red */
    --primary-dark: #9c001a;     /* Darker shade */
    --primary-light: #e8fdff;    /* Lighter shade */
    
    /* Complementary Colors */
    --accent: #03BFF8;           /* Complementary blue */
    --accent-dark: #0288B7;      /* Darker blue */
    
    /* Neutral Colors */
    --dark: #1A1A1A;             /* Near black */
    --gray-dark: #333333;        /* Dark gray */
    --gray: #666666;             /* Medium gray */
    --gray-light: #E5E5E5;       /* Light gray */
    --white: #FFFFFF;            /* Pure white */
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-light: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    
    /* Transparent Colors */
    --primary-transparent: rgba(248, 62, 3, 0.1);
    --dark-transparent: rgba(26, 26, 26, 0.8);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}

/* Following Apple's minimum text size of 11pt */
html {
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Height of your fixed navbar */
}

/* Add these animation keyframes at the top */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 1s ease;
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-brand,
.navbar-scrolled .nav-links a {
    color: var(--white);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-light, .logo-dark {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-dark {
    display: block; /* Show dark logo by default */
}

.logo-light {
    display: none; /* Hide light logo by default */
}

/* When navbar is scrolled, switch logos */
.navbar-scrolled .logo-dark {
    display: none;
}

.navbar-scrolled .logo-light {
    display: block;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}

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

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

.nav-links a.active::after {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark), var(--primary), var(--primary-dark));
    background-size: 200% 100%;
    animation: moveUnderline 3s linear infinite;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-dark);
    height: 3px;
    border-radius: 3px;
    filter: brightness(1.5);
}

@keyframes moveUnderline {
    0% { background-position: 0% 0; filter: brightness(1.2) blur(0px); }
    50% { background-position: 100% 0; filter: brightness(1.8) blur(1px); transform: scaleY(1.2); }
    100% { background-position: 200% 0; filter: brightness(1.2) blur(0px); }
}

.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(244, 107, 107, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    padding: 80px 8rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding-left: 0;
    max-width: 600px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 400;
}

.hero h1 .highlight {
    font-style: italic;
    color: var(--primary);
    display: inline-block;
    animation: highlightPulse 2s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(244, 107, 107, 0.3);
    position: relative;
}

@keyframes highlightPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); text-shadow: 0 0 20px rgba(244, 107, 107, 0.5); }
    100% { transform: scale(1); }
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 500px;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-images {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 80%;
}

.slide {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.collage-grid {
    position: relative;
    width: 90%;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    padding: 2rem;
}

.collage-main {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.collage-side {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.collage-bottom {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.main-image,
.side-image img,
.bottom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.main-image {
    width: 100%;
    height: 100%;
}

.side-image {
    height: 190px;
    overflow: hidden;
    border-radius: 12px;
}

.bottom-image {
    height: 220px;
    overflow: hidden;
    border-radius: 12px
}

.main-image:hover,
.side-image img:hover,
.bottom-image img:hover {
    transform: scale(1.05);
}

/* Main image full width styles */
.main-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    object-fit: contain;
}

@media (max-width: 1400px) {
    .hero,
    .portfolio {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 1200px) {
    .hero,
    .portfolio {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        padding: 2rem 0;
        margin: 0 auto;
    }

    .collage-grid {
        width: 100%;
        padding: 1rem;
    }

    .main-image {
        height: 100%;
    }

    .side-image {
        height: 165px;
    }

    .bottom-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero,
    .portfolio {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        padding: 2rem 0;
        margin: 0 auto;
    }
    .hero-images {
        position: relative;
        height: 50vh;
        width: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    
    .music-bars span {
        width: 3px;
        height: 20px;
    }

    .collage-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .collage-side {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        flex-direction: row;
    }

    .collage-bottom {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .main-image {
        height:100%;
    }

    .side-image {
        height: 150px;
        width: 50%;
    }

    .bottom-image {
        height: 180px;
    }
}


.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ff3366" opacity=".1"/></svg>') repeat-x;
    animation: waveMove 25s linear infinite;
    transform: translateX(0);
}

.wave2 {
    bottom: 10px;
    opacity: 0.5;
    animation: waveMove 15s linear infinite;
}

.wave3 {
    bottom: 20px;
    opacity: 0.2;
    animation: waveMove 20s linear infinite;
}

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

.music-bars {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 2;
    padding: 0 40px;
    width: 90%;
    justify-content: center;
}

.music-bars span {
    width: 2px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: musicBars 1.2s ease-in-out infinite;
    transform-origin: bottom;
    opacity: 0.8;
}

/* Adjust varying heights */
.music-bars span:nth-child(odd) { height: 30px; }
.music-bars span:nth-child(3n) { height: 20px; }
.music-bars span:nth-child(5n) { height: 35px; }

/* Animation delays for all bars */
.music-bars span:nth-child(1) { animation-delay: 0.1s; }
.music-bars span:nth-child(2) { animation-delay: 0.2s; }
.music-bars span:nth-child(3) { animation-delay: 0.3s; }
.music-bars span:nth-child(4) { animation-delay: 0.4s; }
.music-bars span:nth-child(5) { animation-delay: 0.5s; }
.music-bars span:nth-child(6) { animation-delay: 0.6s; }
.music-bars span:nth-child(7) { animation-delay: 0.7s; }
.music-bars span:nth-child(8) { animation-delay: 0.8s; }
.music-bars span:nth-child(9) { animation-delay: 0.9s; }
.music-bars span:nth-child(10) { animation-delay: 1.0s; }
.music-bars span:nth-child(11) { animation-delay: 1.1s; }
.music-bars span:nth-child(12) { animation-delay: 1.2s; }
.music-bars span:nth-child(13) { animation-delay: 1.3s; }
.music-bars span:nth-child(14) { animation-delay: 1.4s; }
.music-bars span:nth-child(15) { animation-delay: 1.5s; }
.music-bars span:nth-child(16) { animation-delay: 1.6s; }
.music-bars span:nth-child(17) { animation-delay: 1.7s; }
.music-bars span:nth-child(18) { animation-delay: 1.8s; }
.music-bars span:nth-child(19) { animation-delay: 1.9s; }
.music-bars span:nth-child(20) { animation-delay: 2.0s; }
.music-bars span:nth-child(21) { animation-delay: 2.1s; }
.music-bars span:nth-child(22) { animation-delay: 2.2s; }
.music-bars span:nth-child(23) { animation-delay: 2.3s; }
.music-bars span:nth-child(24) { animation-delay: 2.4s; }
.music-bars span:nth-child(25) { animation-delay: 2.5s; }
.music-bars span:nth-child(26) { animation-delay: 2.6s; }
.music-bars span:nth-child(27) { animation-delay: 2.7s; }
.music-bars span:nth-child(28) { animation-delay: 2.8s; }
.music-bars span:nth-child(29) { animation-delay: 2.9s; }
.music-bars span:nth-child(30) { animation-delay: 3.0s; }
.music-bars span:nth-child(31) { animation-delay: 3.1s; }
.music-bars span:nth-child(32) { animation-delay: 3.2s; }
.music-bars span:nth-child(33) { animation-delay: 3.3s; }
.music-bars span:nth-child(34) { animation-delay: 3.4s; }
.music-bars span:nth-child(35) { animation-delay: 3.5s; }
.music-bars span:nth-child(36) { animation-delay: 3.6s; }
.music-bars span:nth-child(37) { animation-delay: 3.7s; }
.music-bars span:nth-child(38) { animation-delay: 3.8s; }
.music-bars span:nth-child(39) { animation-delay: 3.9s; }
.music-bars span:nth-child(40) { animation-delay: 4.0s; }
.music-bars span:nth-child(41) { animation-delay: 4.1s; }
.music-bars span:nth-child(42) { animation-delay: 4.2s; }
.music-bars span:nth-child(43) { animation-delay: 4.3s; }
.music-bars span:nth-child(44) { animation-delay: 4.4s; }
.music-bars span:nth-child(45) { animation-delay: 4.5s; }
.music-bars span:nth-child(46) { animation-delay: 4.6s; }
.music-bars span:nth-child(47) { animation-delay: 4.7s; }
.music-bars span:nth-child(48) { animation-delay: 4.8s; }
.music-bars span:nth-child(49) { animation-delay: 4.9s; }
.music-bars span:nth-child(50) { animation-delay: 5.1s; }
.music-bars span:nth-child(51) { animation-delay: 5.2s; }
.music-bars span:nth-child(52) { animation-delay: 5.3s; }
.music-bars span:nth-child(53) { animation-delay: 5.4s; }
.music-bars span:nth-child(54) { animation-delay: 5.5s; }
.music-bars span:nth-child(55) { animation-delay: 5.6s; }
.music-bars span:nth-child(56) { animation-delay: 5.7s; }
.music-bars span:nth-child(57) { animation-delay: 5.8s; }
.music-bars span:nth-child(58) { animation-delay: 5.9s; }
.music-bars span:nth-child(59) { animation-delay: 6.0s; }
.music-bars span:nth-child(60) { animation-delay: 6.1s; }
.music-bars span:nth-child(61) { animation-delay: 6.2s; }
.music-bars span:nth-child(62) { animation-delay: 6.3s; }
.music-bars span:nth-child(63) { animation-delay: 6.4s; }
.music-bars span:nth-child(64) { animation-delay: 6.5s; }

@keyframes musicBars {
    0%, 100% {
        transform: scaleY(1);
        background: var(--primary-color);
    }
    50% {
        transform: scaleY(2);
        background: var(--primary-dark);
    }
}

/* Update responsive adjustments */
@media (max-width: 1024px) {
    .music-bars {
        width: 95%;
        padding: 0 20px;
    }
    
    .music-bars span {
        height: 20px;
    }
}

@media (max-width: 768px) {
    .music-bars {
        gap: 1px;
        width: 98%;
        bottom: 5px;
    }
    
    .music-bars span {
        width: 1px;
        height: 15px;
    }
    
    .music-bars span:nth-child(odd) { height: 20px; }
    .music-bars span:nth-child(3n) { height: 15px; }
    .music-bars span:nth-child(5n) { height: 25px; }
    
    @keyframes musicBars {
        0%, 100% {
            transform: scaleY(1);
        }
        50% {
            transform: scaleY(1.8);
        }
    }
}

@media (max-width: 480px) {
    .hero,
    .portfolio {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .main-image {
        height: 100%;
    }

    .side-image {
        height: 120px;
    }

    .bottom-image {
        height: 150px;
    }
}

/* Portfolio Section */
.portfolio {
    background-color: #fff6f4;
    padding: 6rem 8rem;
    width: 100%;
    overflow: hidden;
}
.portfolio-section {
    padding: 40px 0 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1rem;
}

.expertise-grid {
    display: grid;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Top row - 3 equal squares */
.expertise-grid .top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Bottom row - 3 wider rectangles */
.expertise-grid .bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.expertise-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.expertise-item.small {
    aspect-ratio: 1/1;
}

.expertise-item.large {
    aspect-ratio: 4/3;
}

.expertise-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

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

.hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    padding: 2rem;
    color: var(--white);
    text-align: center;
}

.expertise-item:hover .hover-content {
    opacity: 1;
    transform: translateY(0);
}

.hover-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.hover-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.see-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

.expertise-item:hover .hover-content h3,
.expertise-item:hover .hover-content p,
.expertise-item:hover .see-more-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Update the existing hover effect */
.expertise-item:hover img {
    transform: scale(1.1);
    filter: blur(2px);
}

/* Contact Section - Following Apple Design Guidelines */
.contact {
    padding: 120px 0 8rem;
    background: #ffffff;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive typography */
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 5vw, 4rem);
}

/* Contact Cards */
.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    min-height: 44px; /* Apple's minimum touch target */
}

.contact-icon {
    width: 60px; /* Minimum 44x44pt touch target */
    height: 60px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-details p {
    color: #007697;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.availability {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Social Links */
.social-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Social media link styles */
.social-link {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

/* Facebook */
.social-link[href*="facebook"] {
    background: #1877F2;
    color: var(--white);
}

.social-link[href*="facebook"]:hover {
    background: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Instagram */
.social-link[href*="instagram"] {
    background: #E4405F;
    color: var(--white);
}

.social-link[href*="instagram"]:hover {
    background: #d62e4c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

/* TikTok */
.social-link[href*="tiktok"] {
    background: #000000;
    color: var(--white);
}

.social-link[href*="tiktok"]:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* WhatsApp */
.social-link[href*="wa.me"],
.social-link.whatsapp-link {
    background: #25D366;
    color: var(--white);
}

.social-link[href*="wa.me"]:hover,
.social-link.whatsapp-link:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 1rem;
    min-height: 44px; /* Apple's minimum touch target */
    background: var(--white);
    transition: all 0.2s ease;
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 1rem;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.submit-button {
    width: 100%;
    min-height: 44px; /* Apple's minimum touch target */
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
/* Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        flex-direction: row;
        align-items: center;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .contact-details p {
        font-size: 1rem;
    }

    .availability {
        font-size: 0.8rem;
    }

    .social-card {
        padding: 1.5rem;
    }

    .social-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }

    .input-wrapper i {
        left: 0.8rem;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .submit-button i {
        font-size: 0.9rem;
    }
}

/* Additional adjustments for very small devices */
@media (max-width: 480px) {
    .contact {
        padding: 4rem 0;
    }

    .contact-wrapper {
        padding: 0 0.5rem;
    }

    .contact-card {
        padding: 1.2rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .form-group textarea {
        min-height: 100px;
    }
}

/* Footer Styles */
.footer {
    background:#fff6f4;
    color: var(--dark);
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.footer h4 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links a,
.footer-services li {
    color: var(--dark);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--dark);
}

.footer-newsletter p {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.footer .social-links {
    display: flex;
    gap: 1rem;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form .form-group {
    position: relative;
    margin-top: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem;
    padding-right: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--dark);
}

.newsletter-form input::placeholder {
    color: var(--gray-dark);
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    background: transparent;
    border: none;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.newsletter-form button:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--dark);
    font-size: 0.9rem;
}

/* Common section styles */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--dark);
    animation: fadeIn 1s ease-out infinite alternate;
}

.scroll-indicator i {
    font-size: 2rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .hero,
    .portfolio {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 1200px) {
    .hero,
    .portfolio {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .hero,
    .portfolio {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section-heading {
        font-size: 2rem;
        text-align: center;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .expertise-grid {
        gap: 1rem;
    }

    .expertise-grid .top-row,
    .expertise-grid .bottom-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expertise-item {
        border-radius: 16px;
    }

    .expertise-item.small,
    .expertise-item.large {
        aspect-ratio: 16/9;
    }

    .hover-content {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.6);
        padding: 1rem;
    }

    .hover-content h3 {
        font-size: 1.2rem;
        opacity: 1;
        transform: translateY(0);
    }

    .hover-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .see-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-content {
        margin: 0 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .logo-light, .logo-dark {
        height: 40px; /* Slightly smaller on mobile */
    }
}

/* Additional breakpoint for very small devices */
@media (max-width: 480px) {
    .hero,
    .portfolio {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .expertise-item.small,
    .expertise-item.large {
        aspect-ratio: 1/1;
    }

    .hover-content h3 {
        font-size: 1.1rem;
    }

    .hover-content p {
        font-size: 0.8rem;
    }
}

header {
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: white;
}

header:not(.scrolled) {
    color: white;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        color: var(--white);
        font-size: 1.5rem;
        margin: 0;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }

    /* Mobile menu active states */
    .mobile-menu-active .hamburger-icon {
        background: transparent;
    }

    .mobile-menu-active .hamburger-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .mobile-menu-active .hamburger-icon::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* About Section */
.about {
    padding: 120px 0 6rem;
    background: #ffffff;
    color: var(--dark);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('pattern.png') repeat;
    opacity: 0.1;
    animation: slideBackground 20s linear infinite;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.about .section-heading {
    color: var(--dark);
    text-align: left;
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    animation: fadeIn 1s ease-out;
}

.about-text .highlight {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--dark);
    color: var(--dark);
}

.about-text .description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: var(--dark);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    animation: fadeIn 1s ease-out forwards;
}

.stat-item button:hover {
    transform: translateY(-10px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--dark);
}

.about-image {
    position: relative;
    min-height: 400px;
    animation: floatAnimation 6s ease-in-out infinite;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.about-profiles {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    transform-style: preserve-3d;
}

.profile-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.profile-card:nth-child(1) {
    transform: translateZ(20px) rotate(-3deg);
    animation: float1 6s ease-in-out infinite;
}

.profile-card:nth-child(2) {
    transform: translateZ(40px) rotate(5deg);
    animation: float2 7s ease-in-out infinite;
}

.profile-card:nth-child(3) {
    transform: translateZ(30px) rotate(-6deg);
    animation: float3 8s ease-in-out infinite;
}

.profile-card:nth-child(4) {
    transform: translateZ(50px) rotate(4deg);
    animation: float4 9s ease-in-out infinite;
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover {
    z-index: 10;
    transform: scale(1.1) translateZ(80px) rotate(0);
}

.profile-card:hover img {
    transform: scale(1.1);
}

@keyframes float1 {
    0%, 100% { transform: translateZ(20px) translateY(0) rotate(-3deg); }
    50% { transform: translateZ(20px) translateY(-10px) rotate(-1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateZ(40px) translateY(0) rotate(5deg); }
    50% { transform: translateZ(40px) translateY(-15px) rotate(2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateZ(30px) translateY(0) rotate(-6deg); }
    50% { transform: translateZ(30px) translateY(-12px) rotate(-3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateZ(50px) translateY(0) rotate(4deg); }
    50% { transform: translateZ(50px) translateY(-18px) rotate(1deg); }
}

.about-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-slide {
    position: absolute;
    width: 80%;
    opacity: 0;
    transition: opacity 4s ease-in-out;
    border-radius: 1000px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: none;
}

.about-slide.active {
    opacity: 1;
    z-index: 1;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-image {
        min-height: 400px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .about-slideshow {
        width: 100%;
        height: 100%;
    }

    .about-slide {
        width: 90%;
        max-width: 350px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .about-image {
        min-height: 350px;
    }

    .about-slide {
        width: 85%;
        max-width: 300px;
    }
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
    z-index: 2;
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    color: var(--dark);
    text-align: center;
    margin-top: 0.3rem;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes slideBackground {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Mobile responsiveness for About section */
@media (max-width: 768px) {
    .about {
        padding: 4rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin: 0 auto;
        max-width: 80%;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .about-text .highlight {
        font-size: 1.5rem;
    }

    .about-text .description {
        font-size: 1rem;
    }

    .experience-badge {
        width: 100px;
        height: 100px;
        bottom: -10px;
        right: -10px;
    }

    .experience-badge .years {
        font-size: 1.5rem;
    }

    .experience-badge .text {
        font-size: 0.7rem;
    }
}

/* Testimonials Section */
/* Testimonials Section */
.testimonials {
    padding: 120px 0 100px; /* Increased bottom padding to accommodate buttons */
    background-color: #fff6f4;
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    user-select: none;
    touch-action: manipulation;
    cursor: grab;
    margin-bottom: 2rem;
}

.testimonials-grid {
    position: relative;
    overflow: visible;
    margin-top: 3rem;
    height: 300px;
    user-select: none; /* Prevent text selection while dragging */
    touch-action: manipulation;
    cursor: grab; /* Show grab cursor */
    margin-bottom: 2rem; /* Add margin at bottom */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    touch-action: pan-y;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.testimonial-slide.next {
    transform: translateX(100%);
    opacity: 0;
}

.testimonial-item {
    width: calc(50% - 1rem);
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Navigation Styles */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 0;
}

.nav-dots {
    display: flex;
    gap: 0.5rem;
    margin: 0 2rem;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-light);
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Button styles */
.prev-btn, .next-btn {
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .nav-dots {
        gap: 0.4rem;
        margin: 0 1.5rem;
    }

    .nav-dot {
        width: 6px;
        height: 6px;
    }

    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonials-grid {
        height: 600px;
    }

    .testimonial-slide {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1rem;
    }

    .testimonial-item {
        width: 100%;
        padding: 1.5rem;
        margin: 0;
    }

    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .testimonial-author {
        font-size: 0.95rem;
    }

    .stars {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        height: 650px;
    }

    .testimonial-slide {
        gap: 1rem;
    }

    .testimonial-item {
        padding: 1.2rem;
    }
}

/* Container adjustments */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Section Transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category Page Styles */
.category-header {
    padding: 120px 0 40px;
    background: var(--background);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.5;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Portfolio Grid - New styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-grid .portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-grid .portfolio-item:hover {
    transform: translateY(-5px);
}

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

.portfolio-grid .portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-grid .portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.7) 60%,
        transparent 100%);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-grid .portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-grid .portfolio-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.portfolio-grid .portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.portfolio-grid .see-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.3s;
}

.portfolio-grid .see-more-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(20px) scale(1.05);
}

.portfolio-grid .portfolio-item:hover .portfolio-overlay h3,
.portfolio-grid .portfolio-item:hover .portfolio-overlay p,
.portfolio-grid .portfolio-item:hover .see-more-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Grid Responsive */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    
    .portfolio-grid .portfolio-item {
        aspect-ratio: 4/3;
    }
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.load-more-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.load-more-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.load-more-btn.active i {
    transform: rotate(180deg);
}

/* Animation for new items */
.expertise-item {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Details Page */
.image-details {
    padding-top: 120px;
    background: var(--white);
}

.breadcrumb-container {
    background: var(--gray-light);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.image-showcase {
    display: grid;
    grid-template-columns: 1fr 400px; /* Fixed width for info panel */
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-image {
    border-radius: 12px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    object-fit: contain;
}

.main-image:hover img {
    transform: scale(1.02);
}

.image-info {
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-dark);
}

.additional-images {
    margin-top: 3rem;
}

.additional-images h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .image-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .main-image {
        height: 100vh; /* Full viewport height on mobile */
        max-height: 100vh;
        width: 100%;
    }

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Maintain aspect ratio */
        max-height: 100vh;
    }
}

@media (max-width: 768px) {
    .image-showcase {
        padding: 0;
    }

    .main-image {
        border-radius: 0; /* Remove border radius on mobile */
        box-shadow: none; /* Remove shadow on mobile */
    }

    .image-info {
        padding: 1.5rem;
    }
    
    .image-info h1 {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .image-details {
        padding-top: 80px; /* Reduce top padding on smaller screens */
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Share buttons */
.share-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.share-buttons h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.social-share {
    display: flex;
    gap: 1rem;
}

.social-share a,
.social-share button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.whatsapp-share {
    background: #25D366;
    color: var(--white);
}

.whatsapp-share:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.copy-link-btn {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.copy-link-btn:hover {
    background: var(--gray);
    color: var(--white);
    transform: translateY(-2px);
}

/* Copy success message */
.copy-success {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.copy-success.show {
    opacity: 1;
}

/* Lightbox navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Related images */
.related-images {
    margin-top: 4rem;
}

.related-images h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay h3 {
    font-size: 1rem;
    margin: 0;
}

/* Specific navbar styles for view-image and portfolio-category pages */
.image-details .navbar,
.portfolio-section .navbar {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-details .navbar .nav-brand,
.image-details .navbar .nav-links a,
.portfolio-section .navbar .nav-brand,
.portfolio-section .navbar .nav-links a {
    color: var(--white);
}

.image-details .navbar .nav-links a:hover,
.portfolio-section .navbar .nav-links a:hover {
    color: var(--primary);
}

.image-details .navbar .nav-links a.active,
.portfolio-section .navbar .nav-links a.active {
    color: var(--primary);
}

/* Remove the transparent to black transition for these pages */
.image-details .navbar-scrolled,
.portfolio-section .navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    
    .portfolio,
    .about,
    .contact,
    .testimonials {
        padding-top: 100px;
    }
    
    .category-header,
    .image-details {
        padding-top: 100px;
    }
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand h3 {
        font-size: 1.3rem;
    }

    .footer-brand p {
        font-size: 0.95rem;
    }

    .footer-links,
    .footer-services,
    .footer-newsletter {
        text-align: center;
    }

    .footer h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-links a,
    .footer-services li {
        font-size: 0.95rem;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }

    .newsletter-form input {
        font-size: 0.9rem;
        padding: 0.8rem 3rem 0.8rem 1rem;
    }

    .newsletter-form button {
        width: 44px;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 0;
    }

    .footer-grid {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .footer-brand h3 {
        font-size: 1.2rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer h4 {
        font-size: 1rem;
    }

    .footer-links a,
    .footer-services li {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Hidden row styles */
.hidden-row {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hidden-row.show {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    opacity: 1;
    height: auto;
    margin-top: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

/* Mobile responsiveness for hidden rows */
@media (max-width: 768px) {
    .hidden-row.show {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
}

/* Animation for fade in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Filter Buttons Container */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 4rem;
    padding: 0 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome/Safari */
.category-filters::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 12px 28px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    background: #fff6f4;
    color: var(--gray-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Underline effect */
.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Active state */
.category-btn.active {
    color: var(--primary);
}

.category-btn.active::after {
    width: 70%;
}

/* Default state for 'All' category */
.category-btn[data-category="all"] {
    color: var(--primary);
}

.category-btn[data-category="all"]::after {
    width: 70%;
}

/* Hide 'All' underline when another category is selected */
.category-btn.active:not([data-category="all"]) ~ .category-btn[data-category="all"]::after,
.category-filters:has(.category-btn.active:not([data-category="all"])) .category-btn[data-category="all"]::after {
    width: 0;
}

/* Remove color from 'All' when another category is selected */
.category-btn.active:not([data-category="all"]) ~ .category-btn[data-category="all"],
.category-filters:has(.category-btn.active:not([data-category="all"])) .category-btn[data-category="all"] {
    color: var(--gray-dark);
}

/* Hover effect */
.category-btn:hover {
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-filters {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        margin: 1.5rem 0 3rem;
        gap: 1rem;
    }

    .category-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .category-btn::after {
        height: 1.5px; /* Slightly thinner line on mobile */
    }
}

@media (max-width: 480px) {
    .category-filters {
        gap: 0.8rem;
        margin: 1rem 0 2rem;
    }

    .category-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* Loading spinner styles */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--primary);
}

.loading-spinner i {
    font-size: 2.5rem;
    animation: spin 1s linear infinite;
}

.loading-spinner span {
    margin-top: 1rem;
    font-size: 1.1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.title-wrapper i {
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.8;
}

.title-wrapper h1 {
    margin: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .title-wrapper i {
        font-size: 1.2rem;
    }
    
    .title-wrapper {
        gap: 0.8rem;
    }
}

.stars {
    color: #FFD700; /* Golden yellow color */
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stars i {
    margin: 0 2px;
}

.stars i.fa-star-half-alt {
    color: #FFD700; /* Ensure half stars are also yellow */
}

/* Category Filter Buttons */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 4rem;
    padding: 0 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-btn {
    padding: 12px 28px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    background: #fff6f4;
    color: var(--gray-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Underline effect */
.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Active state */
.category-btn.active {
    color: var(--primary);
}

.category-btn.active::after {
    width: 70%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-filters {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        margin: 1.5rem 0 3rem;
        gap: 1rem;
    }

    .category-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .category-btn::after {
        height: 1.5px; /* Slightly thinner line on mobile */
    }
}

@media (max-width: 480px) {
    .category-filters {
        gap: 0.8rem;
        margin: 1rem 0 2rem;
    }

    .category-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* Update profile cards with fade transitions */
.profile-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.profile-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    object-fit: cover;
}

.profile-img.active {
    opacity: 1;
    z-index: 2;
}

/* Animation to control profile image rotation */
@keyframes imageRotation {
    0%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* Apply different animation delays to each image within cards */
.profile-card .profile-img:nth-child(1) { animation: imageRotation 8s 0s infinite; }
.profile-card .profile-img:nth-child(2) { animation: imageRotation 8s 2s infinite; }
.profile-card .profile-img:nth-child(3) { animation: imageRotation 8s 4s infinite; }
.profile-card .profile-img:nth-child(4) { animation: imageRotation 8s 6s infinite; }

/* Apply different timing to each card to prevent all images changing at once */
.profile-card:nth-child(2) .profile-img:nth-child(1) { animation-delay: 1s; }
.profile-card:nth-child(2) .profile-img:nth-child(2) { animation-delay: 3s; }
.profile-card:nth-child(2) .profile-img:nth-child(3) { animation-delay: 5s; }
.profile-card:nth-child(2) .profile-img:nth-child(4) { animation-delay: 7s; }

.profile-card:nth-child(3) .profile-img:nth-child(1) { animation-delay: 0.5s; }
.profile-card:nth-child(3) .profile-img:nth-child(2) { animation-delay: 2.5s; }
.profile-card:nth-child(3) .profile-img:nth-child(3) { animation-delay: 4.5s; }
.profile-card:nth-child(3) .profile-img:nth-child(4) { animation-delay: 6.5s; }

.profile-card:nth-child(4) .profile-img:nth-child(1) { animation-delay: 1.5s; }
.profile-card:nth-child(4) .profile-img:nth-child(2) { animation-delay: 3.5s; }
.profile-card:nth-child(4) .profile-img:nth-child(3) { animation-delay: 5.5s; }
.profile-card:nth-child(4) .profile-img:nth-child(4) { animation-delay: 7.5s; }

/* Fix for profile images */
.profile-img:first-child {
    opacity: 1; /* Make first image visible by default */
    z-index: 2;
    position: relative; /* Ensure it's positioned properly */
}

.profile-card {
    height: 100%; /* Ensure cards have height */
    min-height: 180px;
    background: #f5f5f5; /* Fallback color if images don't load */
    position: relative;
}

/* Single profile card styling */
.single-profile {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.single-profile .profile-card {
    min-height: 400px;
    transform: none !important;
    animation: floatAnimation 6s ease-in-out infinite !important;
    border-radius: 350px;
}

.single-profile .profile-card:hover {
    transform: scale(1.03) !important;
}

.single-profile .profile-img {
    height: 100%;
    object-position: center top;
}
  