/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #666666;
    --dark-color: #000000;
    --darker-color: #000000;
    --light-color: #ffffff;
    --gray-color: #111111;
    --text-color: #ffffff;
    --text-muted: #888888;
    --border-color: #222222;
    --card-bg: #000000;
    --hover-color: #111111;
    --border-radius: 0px;
    --box-shadow: none;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    color: var(--text-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-color);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    opacity: 0.8;
}

.cursor-follower {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.25rem;
}

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

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

a:hover {
    color: darken(var(--primary-color), 10%);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--dark-color);
}

/* Override section title color for dark background sections */
.skills .section-title,
.contact .section-title,
.about .section-title {
    color: var(--light-color);
}

.skills .section-title::after,
.contact .section-title::after,
.about .section-title::after {
    background-color: var(--light-color);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
}

.works .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--dark-color);
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    opacity: 0.9;
    transition: var(--transition);
}

.logo:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--text-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    border-radius: var(--border-radius);
}

.btn.primary {
    background-color: var(--text-color);
    color: var(--dark-color);
    border: none;
}

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

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

.btn.secondary:hover {
    background-color: var(--text-color);
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-color);
    padding: 6rem 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(192, 192, 192, 0.05) 100%);
}

.hero h1 {
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 700px;
}

.highlight {
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Client Logos */
.hero-client-logos {
    margin-top: 4rem; /* Space above the logos */
    width: 100%;
    overflow: hidden; /* Hide overflow for scrolling */
    position: relative; /* For potential gradient overlays */
    padding: 1rem 0;
}

.logos-title {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-reel {
    display: flex;
    width: fit-content; /* Allow content to determine width */
    animation: scrollLogos 40s linear infinite;
}

.hero-client-logo {
    max-height: 50px; /* Adjust size as needed */
    width: auto;
    margin: 0 2rem; /* Spacing between logos */
    filter: grayscale(100%);
    opacity: 0.6; /* Subtle appearance */
    transition: opacity 0.3s ease, filter 0.3s ease;
    flex-shrink: 0; /* Prevent logos from shrinking */
}

.hero-client-logo:hover {
    opacity: 0.9;
    filter: grayscale(50%); /* Slightly less gray on hover */
}

/* Fading edges for the reel */
.hero-client-logos::before,
.hero-client-logos::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px; /* Adjust width of fade */
    z-index: 2;
}

.hero-client-logos::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-color) 0%, rgba(0,0,0,0) 100%);
}

.hero-client-logos::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-color) 0%, rgba(0,0,0,0) 100%);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Scroll the width of the first set of logos */
        transform: translateX(-50%); 
    }
}

/* Pause animation on hover */
.logo-reel:hover {
    animation-play-state: paused;
}

/* About Section */
.about {
    padding: 4rem 0 6rem;
    background-color: var(--primary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.image-container {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1);
}

.about-text {
    flex: 1.5;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Works Section */
.works {
    padding: 8rem 0;
    background-color: #ffffff;
    position: relative;
}

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

.works-grid {
    display: flex;
    flex-direction: column;
    gap: 15rem;
}

.portfolio-item {
    position: relative;
    display: flex;
    min-height: 85vh;
    align-items: center;
}

.portfolio-background {
    position: absolute;
    top: -4rem;
    left: 0;
    width: 100%;
    height: calc(100% + 8rem);
    background-color: #f8f8f8;
    z-index: 1;
    transform: scaleY(0.9);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.portfolio-item:hover .portfolio-background {
    transform: scaleY(1);
}

.portfolio-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    padding: 4rem;
}

.portfolio-media {
    grid-column: 1 / 7;
}

.portfolio-image-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stacked-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.portfolio-item:hover .stacked-image {
    transform: scale(1.02);
}

.portfolio-content {
    grid-column: 7 / -1;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Reverse layout for even items */
.portfolio-item:nth-child(even) .portfolio-media {
    grid-column: 7 / -1;
    order: 2;
}

.portfolio-item:nth-child(even) .portfolio-content {
    grid-column: 1 / 7;
    padding-right: 0;
    order: 1;
}

.portfolio-item:nth-child(even) .portfolio-logo {
    right: auto;
    left: -2rem;
}

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

.portfolio-year {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 100px;
}

.portfolio-category {
    font-size: 1rem;
    color: var(--dark-color);
}

.portfolio-header h3 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.portfolio-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.portfolio-tag {
    padding: 0.6rem 1.2rem;
    background-color: white;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-links {
    display: flex;
    gap: 2rem;
}

.portfolio-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.portfolio-link:hover svg {
    transform: translateX(4px);
}

/* Client section */
.portfolio-client {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.client-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.8;
    transition: var(--transition);
}

.client-logo:hover {
    opacity: 1;
    filter: none;
}

.client-info {
    text-align: left;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.client-industry {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .portfolio-content-wrapper {
        padding: 3rem;
    }

    .portfolio-header h3 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 992px) {
    .works-grid {
        gap: 10rem;
    }

    .portfolio-item {
        min-height: auto;
    }

    .portfolio-content-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .portfolio-media,
    .portfolio-content,
    .portfolio-item:nth-child(even) .portfolio-media,
    .portfolio-item:nth-child(even) .portfolio-content {
        grid-column: 1 / -1;
        padding: 0;
        order: unset;
    }

    .portfolio-content {
        margin-top: 4rem;
    }

    .portfolio-image-stack {
        gap: 1.5rem;
    }

    .portfolio-header h3 {
        font-size: 2.5rem;
    }

    .media-logo-grid {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .media-logo-item {
        max-height: 100px;
    }

    /* General adjustments for tablets */
    .container {
        max-width: 960px;
        padding: 0 1rem; /* Reduce horizontal padding */
    }

    h1 {
        font-size: 3.8rem; /* Adjust heading sizes */
    }
    h2 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.2rem; /* Adjust section titles */
        margin-bottom: 3rem;
    }
    .section-title::after {
        bottom: -0.8rem;
    }
    p {
        font-size: 1rem; /* Adjust paragraph font size */
        line-height: 1.5;
    }

    /* Header adjustments */
    header.scrolled {
        padding: 1rem 0;
    }
    .header-content {
         padding: 0 1.5rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr; /* Stack image and text */
        gap: 2rem;
    }
     .about-image {
         order: -1; /* Image appears first on smaller screens */
         margin: 0 auto; /* Center image */
         max-width: 400px; /* Control image size */
     }

    /* Skills Section */
    .skills-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for skills */
    }

    /* Contact Section */
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }
     .contact-info, .contact-form {
         width: 100%; /* Make info and form full width */
         max-width: 500px; /* Limit max width for better readability */
         margin: 0 auto; /* Center align */
     }
}

@media screen and (max-width: 768px) {
    .works {
        padding: 6rem 0;
    }

    .works-grid {
        gap: 6rem;
    }

    .portfolio-content-wrapper {
        padding: 1.5rem;
    }

    .portfolio-header h3 {
        font-size: 2rem;
    }

    .portfolio-description {
        font-size: 1.1rem;
    }

    .portfolio-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .media-logo-grid {
        gap: 1rem;
        padding: 1rem;
    }

    .media-logo-item {
        max-height: 90px;
    }

    /* General adjustments for smaller tablets/large phones */
    .container {
        padding: 0 1rem;
    }
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.5rem;
    }
     .section-title {
         font-size: 2rem;
         margin-bottom: 2.5rem;
     }
     p {
        font-size: 0.95rem;
     }

    /* Header & Navigation */
    header {
        padding: 1.5rem 0;
    }
     header.scrolled {
        padding: 1rem 0;
     }
    .header-content {
        padding: 0 1rem;
    }
     .menu-toggle {
         display: flex; /* Show hamburger */
     }
     nav {
         position: fixed;
         top: 0;
         right: -100%; /* Start off-screen */
         width: 70%; /* Adjust width as needed */
         max-width: 300px;
         height: 100vh;
         background-color: var(--darker-color); /* Slightly darker background */
         box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
         transition: right 0.4s ease-in-out;
         padding-top: 6rem; /* Space for header */
         z-index: 1005;
     }
     nav.active {
         right: 0; /* Slide in */
     }
     nav ul {
         flex-direction: column; /* Stack links vertically */
         align-items: center;
         padding: 2rem 0;
     }
     nav ul li {
         margin-left: 0;
         margin-bottom: 1.5rem; /* Space between links */
         width: 100%;
         text-align: center;
     }
     nav ul li a {
         font-size: 1.1rem;
         padding: 0.8rem 1rem;
         display: block; /* Make links take full width */
     }
     nav ul li a::after {
         display: none; /* Hide underline for mobile nav */
     }
      nav ul li a.active {
          color: var(--secondary-color); /* Keep active color */
           background-color: rgba(255, 255, 255, 0.1); /* Add subtle background to active link */
           border-radius: 4px;
     }

    /* Hero Section */
    .hero {
        padding: 8rem 0 4rem; /* Adjust padding */
        text-align: center;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
     .hero h2 {
         font-size: 1.5rem; /* Adjust subtitle size */
          min-height: 2.5em; /* Ensure space for typewriter */
     }
     .hero p {
        font-size: 1rem;
         max-width: 90%;
         margin-left: auto;
         margin-right: auto;
     }
    .cta-buttons {
         flex-direction: column;
         gap: 1rem;
         align-items: center;
    }
     .btn {
        padding: 0.9rem 1.8rem;
         width: 80%;
         max-width: 250px;
     }

    /* About Section */
    .about {
        padding: 4rem 0;
    }
     .about-image {
         max-width: 300px;
     }

    /* Skills Section */
    .skills {
        padding: 4rem 0;
    }
    .skills-container {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns */
        gap: 1.5rem;
    }
    .skill-item {
        padding: 1rem 1.2rem; /* Increase horizontal padding */
    }
    .skill-name {
         font-size: 0.9rem; /* Ensure readable font size */
         margin-bottom: 0.6rem; /* Adjust spacing */
    }
    .skill-bar {
        height: 6px; /* Make bar slightly thinner */
    }

     /* Contact Section */
     .contact {
         padding: 4rem 0;
     }
     .info-item {
         flex-direction: column; /* Stack icon and text */
         align-items: center;
         text-align: center;
         gap: 0.5rem;
     }

    /* Hero Client Logos */
    .hero-client-logos {
        margin-top: 3rem;
    }
    .hero-client-logo {
        max-height: 25px;
        margin: 0 1.5rem;
    }
    .logo-reel {
        animation-duration: 30s; /* Faster scroll on smaller screens */
    }
     .hero-client-logos::before,
     .hero-client-logos::after {
        width: 30px;
     }

    /* Works Section Refinements */
    .portfolio-item {
        /* Ensure items don't have conflicting height settings */
        min-height: auto;
    }
    .portfolio-content {
        margin-top: 2rem; /* Adjust top margin if needed */
    }

    /* Social Growth / Chart specific */
    .social-stats {
        margin-top: 1rem; /* Adjust spacing */
    }
    .engagement-graph {
        height: 250px; /* Adjust height for mobile */
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Prevent overflow */
    }
    #engagementChart {
        max-width: 100%;
        height: auto !important; /* Override potential inline styles */
    }
}

@media screen and (max-width: 576px) {
    .works {
        padding: 4rem 0;
    }

    .works-grid {
        gap: 4rem; /* Reduce gap further */
    }

    .portfolio-content-wrapper {
        padding: 1rem;
    }

    .portfolio-image-stack {
        gap: 1rem;
    }

    .portfolio-header h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .portfolio-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .portfolio-tags {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .portfolio-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .portfolio-links {
        flex-direction: column;
        gap: 1rem;
    }

    .portfolio-link {
        width: 100%;
        justify-content: center;
    }

    .media-logo-grid {
        gap: 1rem;
        padding: 1rem;
    }

    .media-logo-item {
        max-height: 90px;
    }

    /* General adjustments for small phones */
    .container {
        padding: 0 0.8rem;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
         margin-bottom: 2rem;
    }
    .section-title::after {
        width: 50px;
        height: 3px;
        bottom: -0.6rem;
    }

    /* Header */
     nav {
        width: 85%; /* Wider menu on small screens */
     }

    /* Hero Section */
    .hero {
        padding: 7rem 0 3rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
     .hero h2 {
         font-size: 1.3rem;
         min-height: 3em;
     }
     .hero p {
         font-size: 0.9rem;
     }

    /* About Section */
     .about {
        padding: 3rem 0;
     }
     .about-image {
         max-width: 250px;
     }
     .social-links a {
         width: 35px;
         height: 35px;
         font-size: 0.9rem;
     }

     /* Skills Section */
     .skills {
         padding: 3rem 0;
     }
     .skills-container {
        gap: 1rem;
     }
     .skill-item {
         padding: 0.8rem 1rem; /* Adjusted padding for smallest screens */
     }
     .skill-name {
         font-size: 0.85rem; /* Keep slightly smaller */
         margin-bottom: 0.5rem;
     }
     .skill-bar {
        height: 5px; /* Even thinner bar */
     }

     /* Contact Section */
     .contact {
         padding: 3rem 0;
     }
     .form-group input,
     .form-group textarea {
         padding: 0.8rem;
         font-size: 0.9rem;
     }
     .contact .btn {
         width: 100%;
     }

    /* Footer */
     footer {
         padding: 1.5rem 0;
         font-size: 0.85rem;
     }

    /* Hero Client Logos */
    .hero-client-logos {
        margin-top: 2.5rem;
        padding: 0.5rem 0;
    }
    .hero-client-logo {
        max-height: 22px;
        margin: 0 1rem;
    }
    .logo-reel {
        animation-duration: 25s; /* Even faster scroll */
    }
     .logos-title {
        font-size: 0.8rem;
        margin-bottom: 1rem;
     }

    /* Works Section Refinements */
    .portfolio-item {
        padding-bottom: 2rem; /* Add some bottom padding if items feel cramped */
    }
    .portfolio-content {
        margin-top: 1.5rem;
    }

    /* Social Growth / Chart specific */
     .social-stats {
         gap: 1rem;
     }
    .counter-value {
        font-size: 2.5rem; /* Reduce counter size */
    }
    .counter-label {
        font-size: 1rem;
    }
    .engagement-graph {
        height: 200px; /* Further adjust height */
    }
}

/* Card flip animation */
.card-container {
    perspective: 1000px;
    height: 200px;
    margin: 1.5rem 0;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.card:hover {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-front {
    background-color: var(--card-bg);
}

.card-front img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.card-back {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
    color: var(--light-color);
    padding: 1.5rem;
}

.platform-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.platform-logos span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Funnel animation */
.portfolio-funnel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
}

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

.funnel-icon {
    width: 60px;
    height: 60px;
    background-color: var(--gray-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.funnel-icon i {
    font-size: 1.5rem;
    color: var(--text-color);
}

.funnel-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.funnel-connector {
    height: 2px;
    flex-grow: 1;
    background-color: var(--border-color);
    margin: 0 10px;
    position: relative;
    top: -15px;
}

.funnel-step:hover .funnel-icon {
    transform: scale(1.1);
}

/* Brand logos section */
.brand-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    align-items: center;
}

.logo-item {
    aspect-ratio: 3/2;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: var(--transition);
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--dark-color);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.logo-item:hover img {
    filter: none;
    opacity: 1;
}

/* Gallery items for The Quarry */
.expanded-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

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

.hover-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    background-color: var(--gray-color);
    padding: 0.75rem;
    border-radius: var(--border-radius);
}

.hover-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Social Stats */
.social-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.followers-counter {
    text-align: center;
}

.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.counter-label {
    font-size: 1.2rem;
    color: #666;
}

.counter-period {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.25rem;
}

.engagement-graph {
    height: 200px;
    margin-top: 1rem;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background-color: var(--primary-color);
}

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

.skill-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.skill-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.skill-bar {
    height: 8px;
    background-color: var(--gray-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background-color: var(--dark-color);
    text-align: center;
}

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

.contact-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-info a {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--text-color);
}

.contact-cta {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--dark-color);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: var(--transition);
}

.contact-cta:hover {
    background-color: var(--text-muted);
    transform: translateY(-2px);
}

.contact-social {
    margin-top: 4rem;
}

.contact-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    opacity: 0.7;
    transition: var(--transition);
}

.contact-social a:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .contact {
        padding: 6rem 0;
    }

    .contact-title {
        font-size: 3.5rem;
    }

    .contact-info a {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 576px) {
    .contact {
        padding: 4rem 0;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-container {
        padding: 0 1.5rem;
    }
}

/* Remove old contact form styles */
.contact-form,
.form-group,
.form-group input,
.form-group textarea {
    display: none;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        content: attr(data-start);
    }
    to {
        content: attr(data-end);
    }
}

.animate-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image {
        width: 80%;
    }
    
    .portfolio-funnel {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .funnel-connector {
        width: 2px;
        height: 30px;
        margin: 5px 0;
        position: static;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    header {
        padding: 1rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .logo {
        height: 40px;
        width: 40px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .card-container {
        height: 150px;
    }

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

    .portfolio-image {
        height: 200px;
    }

    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-header {
        flex-direction: column;
    }

    .portfolio-icons {
        width: 100%;
        justify-content: center;
    }

    .portfolio-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .portfolio-links {
        width: 100%;
        justify-content: center;
    }

    .logo {
        height: 35px;
        width: 35px;
    }
}

/* Selection color */
::selection {
    background-color: var(--text-color);
    color: var(--dark-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

/* Client Logo Grid for multiple clients */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.client-grid-item {
    text-align: center;
}

.client-grid-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: var(--transition);
    margin: 0 auto;
}

.client-grid-logo:hover {
    opacity: 1;
}

.client-grid-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .portfolio-client {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: center;
    }

    .client-logo {
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }

    .client-info {
        text-align: center;
        width: 100%;
    }

    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 1rem;
    }

    .client-grid-logo {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 576px) {
    .portfolio-client {
        margin-bottom: 1.5rem;
    }

    .client-logo {
        width: 48px;
        height: 48px;
    }

    .client-name {
        font-size: 1rem;
    }

    .client-industry {
        font-size: 0.8rem;
    }

    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Update portfolio item spacing */
.portfolio-header {
    margin-top: 1rem;
}

.portfolio-description {
    margin-top: 1.5rem;
}

/* Styles for the logo grid within portfolio media */
.media-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 2rem;
    padding: 2rem;
    background-color: #f0f0f0;
    border-radius: 8px;
    height: 100%; /* Fill the media container */
    align-items: center; /* Center logos vertically */
    justify-items: center; /* Center logos horizontally */
}

.media-logo-item {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(80%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.media-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile Navigation Toggle (Hamburger Menu) */
.menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
    z-index: 1010; /* Ensure it's above other header content */
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--text-color);
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Style changes when menu is open */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
} 