/* ------------------------------------------------------------------
   RESET & BASICS 
------------------------------------------------------------------ */
:root {
    /* Colors */
    --primary-bg: #FDFCF8;
    --secondary-bg: #E8E3D9;
    --text-main: #2C2C2C;
    --text-muted: #666;
    --accent: #CBB26A;
    /* Muted Gold */
    --accent-hover: #D4AF37;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --container-width: 1140px;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ------------------------------------------------------------------
   TYPOGRAPHY 
------------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--accent);
    font-style: italic;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.center-text {
    text-align: center;
}

/* ------------------------------------------------------------------
   UTILITIES 
------------------------------------------------------------------ */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--white);
    border: 2px solid var(--text-main);
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(203, 178, 106, 0.4);
}

.btn-outline {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--white);
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.section-bg {
    background-color: var(--secondary-bg);
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    z-index: 1001;
    width: 0%;
}

/* ------------------------------------------------------------------
   NAVBAR 
------------------------------------------------------------------ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 25px;
    border: 1px solid var(--text-main);
    border-radius: 30px;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: var(--text-main);
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

/* ------------------------------------------------------------------
   HERO 
------------------------------------------------------------------ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 350px;
    /* Reduced somewhat from a full width to look elegant */
    height: 450px;
    object-fit: cover;
    border-radius: 15rem 15rem 0 0;
    /* Modern arch shape */
    box-shadow: 20px 20px 0 var(--accent);
    z-index: 2;
}

.blob-bg {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #f5ecca 0%, transparent 70%);
    z-index: 1;
    border-radius: 50%;
    filter: blur(50px);
}

/* Floating Elements */
.floating-icon {
    position: absolute;
    background: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 3;
    font-size: 1.5rem;
    color: var(--text-main);
    animation: float 6s ease-in-out infinite;
}

.icon-fb {
    top: 10%;
    left: 0;
    animation-delay: 0s;
    color: #1877F2;
}

.icon-ig {
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
    color: #E4405F;
}

.icon-ai {
    top: 40%;
    left: -20px;
    animation-delay: 4s;
    color: var(--accent);
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted);
}

/* ------------------------------------------------------------------
   VALUES 
------------------------------------------------------------------ */
.values {
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.values-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.value-item i {
    color: var(--accent);
}

/* ------------------------------------------------------------------
   ABOUT ME 
------------------------------------------------------------------ */
.about {
    padding: var(--section-padding);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.counters {
    display: flex;
    justify-content: space-around;
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 3rem;
}

.counter-num {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------
   SKILLS 
------------------------------------------------------------------ */
.skills {
    padding: var(--section-padding);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ------------------------------------------------------------------
   PORTFOLIO 
------------------------------------------------------------------ */
.work {
    padding: var(--section-padding);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.work-filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text-main);
    color: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.work-img img,
.work-img video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.5s;
    display: block;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 44, 44, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
}

.work-item:hover .work-img img,
.work-item:hover .work-img video {
    transform: scale(1.1);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h3 {
    color: var(--white);
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: 0.4s;
}

.work-item:hover .work-overlay h3 {
    transform: translateY(0);
}

.view-btn {
    background: var(--accent);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}

.work-item:hover .view-btn {
    transform: translateY(0);
}

/* ------------------------------------------------------------------
   WHY ME / TESTI 
------------------------------------------------------------------ */
.why-me {
    padding: var(--section-padding);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.why-list i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* ------------------------------------------------------------------
   CONNECT HUB (New Contact Section) 
------------------------------------------------------------------ */
.contact {
    padding: var(--section-padding);
}

.connect-hub {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.connect-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.connect-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.connect-card {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.connect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--secondary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: 0.3s;
}

.connect-card:hover .icon-box.whatsapp {
    background: #25D366;
    color: white;
}

.whatsapp:hover .icon-box {
    background: #25D366;
    color: white;
}

.email:hover .icon-box {
    background: var(--accent);
    color: white;
}

.card-info h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.arrow-icon {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
    color: var(--accent);
}

.connect-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Social Row */
.social-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-pill {
    padding: 12px 25px;
    border-radius: 50px;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: 0.3s;
}

.social-pill i {
    font-size: 1.1rem;
}

.social-pill:hover {
    transform: translateY(-3px);
    color: var(--white);
}

.social-pill.fb:hover {
    background: #1877F2;
}

.social-pill.ig:hover {
    background: #E4405F;
}

.social-pill.li:hover {
    background: #0A66C2;
}


/* Form Group Removed - Old Styles Cleaned up essentially by replacement if overwriting same area, 
   but since I'm appending or replacing a block, I should ensure I don't leave mess. 
   For now I'll just add these. The old classes .form-group etc won't be used. */

/* ------------------------------------------------------------------
   FOOTER 
------------------------------------------------------------------ */
footer {
    background: var(--text-main);
    color: var(--secondary-bg);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ------------------------------------------------------------------
   AUDIO TOGGLE 
------------------------------------------------------------------ */
.audio-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text-main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.audio-toggle:hover {
    transform: scale(1.1);
}

/* ------------------------------------------------------------------
   ANIMATIONS 
------------------------------------------------------------------ */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Reveal Classes */
.reveal,
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}

.reveal.active,
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* ------------------------------------------------------------------
   MEDIA QUERIES 
------------------------------------------------------------------ */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .profile-img {
        width: 280px;
        height: 350px;
    }

    .blob-bg {
        width: 350px;
        height: 350px;
        top: -5%;
        right: 10%;
    }

    .why-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu.open {
        right: 0;
    }

    .mobile-menu a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-main);
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    /* Modal Removed */

    @media (max-width: 480px) {
        .section-title {
            font-size: 2rem;
        }

        .hero-title {
            font-size: 2rem;
        }

        .values-grid {
            flex-direction: column;
            align-items: center;
        }
    }
}

/* ------------------------------------------------------------------
   PROJECT DETAILS PAGE 
------------------------------------------------------------------ */
.project-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.project-category {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.project-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

.gallery-item.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    border-radius: 10px;
    width: 100%;
    height: 400px;
    /* Enforce standard height */
    object-fit: cover;
    /* Crop nicely */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.view-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* ------------------------------------------------------------------
   PROJECT DETAIL GALLERY
------------------------------------------------------------------ */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    /* Increased height for larger crop */
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.view-icon {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Huge Gallery Item for Featured Video */
.gallery-item.huge {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 900px;
    /* Not too much huge */
    height: auto !important;
    /* Override fixed height */
    margin: 60px auto 30px auto;
    cursor: default;
    background: transparent;
    box-shadow: none;
    position: relative;
    /* Ensure z-index works if needed */
    z-index: 10;
}

.gallery-item.huge video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Remove hover effects for the huge item since it has controls */
.gallery-item.huge:hover video {
    transform: none;
}

.gallery-item.huge .item-overlay {
    display: none;
}