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

:root {
    --color-light: #EEF0F2;
    --color-muted: #C6C7C4;
    --color-mid: #A2999E;
    --color-accent: #846A6A;
    --color-dark: #353B3C;
}

html {
    background-color: #353B3C !important; /* Both overscrolls match footer - explicit color */
    background: #353B3C !important; /* Ensure overscroll areas match footer */
}

body {
    font-family: 'Teko', sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-light);
    /* Fallback for overscroll areas */
    background-attachment: local;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.3rem;
    min-height: 100vh;
}

/* Smooth scrolling for in-page anchors */
html {
    scroll-behavior: smooth;
}

/* Accessibility helpers */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Offset anchored sections for fixed navbar */
[id] {
    scroll-margin-top: 60px;
}

@media (max-width: 768px) {
    [id] {
        scroll-margin-top: 50px;
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.4rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(238, 240, 242, 0.98);
    box-shadow: 0 1px 8px rgba(166, 170, 171, 0.3);
    padding: 0.3rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--color-accent);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-family: 'Teko', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

/* Active state for current section (scrollspy) */
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    width: 100%;
}

/* Better focus visibility */
.nav-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 6px;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.nav-toggle:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.gradient-text {
    color: var(--color-accent);
}

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

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

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Teko', sans-serif;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.3rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    user-select: none;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--color-dark);
    color: var(--color-light);
    box-shadow: 0 4px 15px var(--color-mid);
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-accent);
}

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

.btn-secondary:hover {
    background: var(--color-dark);
    color: var(--color-light);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Modern Process Stack */
.process-stack {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(50px);
    animation: cardSlideIn 0.6s ease-out forwards;
}

.process-card[data-step="1"] { animation-delay: 0.1s; }
.process-card[data-step="2"] { animation-delay: 0.2s; }
.process-card[data-step="3"] { animation-delay: 0.3s; }
.process-card[data-step="4"] { animation-delay: 0.4s; }

.process-card:hover {
    transform: translateX(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-mid));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.2rem;
    color: var(--color-light);
}

.process-card:hover .card-icon {
    transform: rotate(5deg) scale(1.1);
}

.card-content {
    flex: 1;
}

.card-content h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: var(--color-dark);
    letter-spacing: 0.5px;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--color-accent);
    line-height: 1.4;
    margin: 0;
}

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

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

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-dark);
    letter-spacing: 2px;
}

.section-header p {
    font-size: 1.4rem;
    color: var(--color-accent);
}

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

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

.about-text h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.stat p {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--color-mid);
    margin-top: 0.5rem;
}

.feature h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.feature p {
    color: var(--color-accent);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--color-light);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--color-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-list details {
    background: var(--color-light);
    border: 1px solid var(--color-muted);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(53, 59, 60, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.faq-list details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(53, 59, 60, 0.1);
}

.faq-list details[open] {
    box-shadow: 0 8px 20px rgba(53, 59, 60, 0.12);
    transform: translateY(-4px);
}

.faq-list details[open] p {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.faq-list summary {
    cursor: pointer;
    list-style: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--color-dark);
    letter-spacing: 1px;
    position: relative;
    padding-right: 2rem;
    transition: color 0.3s ease;
}

.faq-list summary:hover {
    color: var(--color-accent);
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 6px;
}

.faq-list p {
    margin-top: 0.75rem;
    color: var(--color-accent);
    line-height: 1.6;
}

/* Portfolio Carousel */
.portfolio-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-track .portfolio-card {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
}

.portfolio-card {
    background: var(--color-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-muted);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Hide portfolio details by default */
.portfolio-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.75rem;
}

/* Show details when card is expanded */
.portfolio-card.expanded .portfolio-details {
    max-height: 500px;
    opacity: 1;
    padding: 1.75rem;
}

/* Add hover effect on banner */
.portfolio-banner[data-toggle] {
    position: relative;
}

.portfolio-banner[data-toggle]::after {
    content: 'Click to view details';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--color-dark);
    color: var(--color-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-banner[data-toggle]::after {
    opacity: 0.9;
}

.portfolio-card.expanded .portfolio-banner[data-toggle]::after {
    content: 'Click to hide details';
}

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

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.carousel-btn {
    background: var(--color-dark);
    color: var(--color-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--color-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .portfolio-carousel {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .carousel-container {
        border-radius: 0;
    }
    
    .carousel-nav {
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0 2rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-dots {
        order: 0;
    }
}

/* Website Preview Banner */
.portfolio-banner {
    height: 160px;
    background: linear-gradient(135deg, var(--color-muted) 0%, var(--color-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.website-preview {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 280px;
    height: 120px;
    overflow: hidden;
    transform: perspective(800px) rotateY(-5deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .website-preview {
    transform: perspective(800px) rotateY(0deg) rotateX(5deg) scale(1.02);
}

.browser-bar {
    background: #f5f5f5;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-bottom: 1px solid #e0e0e0;
}

.browser-buttons {
    display: flex;
    gap: 4px;
}

.browser-btn {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.browser-btn.red { background: #ff5f57; }
.browser-btn.yellow { background: #ffbd2e; }
.browser-btn.green { background: #28ca42; }

.address-bar {
    margin-left: auto;
    font-size: 8px;
    color: #666;
    background: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-family: monospace;
}

.website-mockup {
    height: calc(100% - 20px);
    background: #fff;
    position: relative;
}

.mockup-header {
    height: 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-dark) 100%);
    display: flex;
    align-items: center;
    padding: 0 8px;
    justify-content: space-between;
}

.logo-area {
    color: white;
    font-size: 10px;
    font-weight: bold;
    font-family: 'Bebas Neue', sans-serif;
}

.nav-menu-mock {
    display: flex;
    gap: 3px;
}

.nav-dot {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
}

.mockup-content {
    padding: 8px;
    height: calc(100% - 24px);
}

.hero-section-mock {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-text-mock {
    height: 6px;
    background: linear-gradient(90deg, var(--color-muted) 0%, transparent 70%);
    border-radius: 2px;
    width: 80%;
}

.hero-button-mock {
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    width: 30%;
    margin-top: 2px;
}

/* Gym theme variation */
.gym-theme .mockup-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.gym-theme .hero-button-mock {
    background: #e74c3c;
}

/* CEO Rating System */
.ceo-rating {
    background: linear-gradient(135deg, var(--color-light) 0%, #f8f9fa 100%);
    border: 2px solid var(--color-muted);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ceo-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(53, 59, 60, 0.1);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rating-header h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-dark);
    margin: 0;
    letter-spacing: 0.5px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.stars i:hover {
    transform: scale(1.2);
}

.rating-quote {
    font-style: italic;
    color: var(--color-accent);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    position: relative;
}

.rating-quote::before {
    content: '"';
    font-size: 1.5rem;
    color: var(--color-mid);
    position: absolute;
    left: -8px;
    top: -4px;
}

.rating-quote::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--color-mid);
}

/* Mobile portfolio card adjustments */
@media (max-width: 768px) {
    .portfolio-details {
        padding: 0 1.5rem;
    }
    
    .portfolio-card.expanded .portfolio-details {
        padding: 1.5rem;
    }
}

.portfolio-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    letter-spacing: 0.5px;
}

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

.tag {
    background: var(--color-muted);
    color: var(--color-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
}

.portfolio-content p {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-features ul {
    list-style: none;
    margin-bottom: 1.25rem;
}

.portfolio-features li {
    padding: 0.5rem 0;
    color: var(--color-mid);
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.portfolio-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .portfolio-features li {
        padding-left: 1.8rem;
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .portfolio-features li::before {
        font-size: 0.9rem;
        left: 0;
        top: 0.6rem;
    }
}

@media (max-width: 480px) {
    .portfolio-features li {
        padding-left: 1.6rem;
        font-size: 0.95rem;
    }
    
    .portfolio-features li::before {
        font-size: 0.85rem;
        left: 0;
        top: 0.65rem;
    }
}

.portfolio-card .btn {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.portfolio-card .btn i {
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--color-light);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.contact-form .btn {
    align-self: center;
    width: auto;
    min-width: 200px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.2rem;
    border: 2px solid var(--color-muted);
    border-radius: 10px;
    font-size: 1.2rem;
    transition: border-color 0.3s ease;
    font-family: 'Teko', sans-serif;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 1;
}

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

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-section:first-child {
        display: none; /* Hide the main Gimfy description on mobile */
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.1rem;
    }
    
    .footer-section ul li a {
        font-size: 0.7rem;
        padding: 0.05rem 0;
    }
    
    .footer-contact {
        gap: 0.25rem;
    }
    
    .footer-contact-item {
        font-size: 0.65rem;
        gap: 0.25rem;
    }
    
    .footer-contact-item i {
        font-size: 0.6rem;
        width: 10px;
    }
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-light);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

.footer-section p {
    color: var(--color-mid);
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .footer-section ul li {
        margin-bottom: 0.15rem;
    }
}

.footer-section ul li a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .footer-section ul li a {
        font-size: 0.75rem;
        padding: 0.1rem 0;
        display: inline-block;
    }
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-mid);
    padding-top: 1rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding-top: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Footer Contact Section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.footer-contact-item i {
    font-size: 0.85rem;
    color: var(--color-mid);
    width: 16px;
    flex-shrink: 0;
}

.footer-contact-item span {
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .footer-contact {
        gap: 0.3rem;
        text-align: center;
    }
    
    .footer-contact-item {
        justify-content: center;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .footer-contact-item i {
        font-size: 0.7rem;
        width: 12px;
    }
    
    /* Portfolio cards mobile optimization */
    .portfolio-banner[data-toggle]::after {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        bottom: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .footer-contact {
        gap: 0.3rem;
    }
    
    .footer-contact-item {
        font-size: 0.85rem;
        gap: 0.35rem;
    }
    
    .footer-contact-item i {
        font-size: 0.75rem;
        width: 12px;
    }
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }


    .section-header h2 {
        font-size: 3.5rem;
    }
}

/* Mobile Landscape and Portrait */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.3rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.25rem 0;
    }
    
    .nav-logo h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        flex-direction: column;
        background-color: var(--color-light);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 27px var(--color-mid);
        padding: 1.5rem 0;
        gap: 0.25rem;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero {
        padding: 4.5rem 0 3rem;
    }

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

    .hero-title {
        font-size: 3.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .hero-visual {
        display: block;
    }

    .process-stack {
        max-width: 100%;
        padding: 1rem 0;
    }

    .process-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
        gap: 0.8rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .card-icon i {
        font-size: 1rem;
    }
    
    .card-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }
    
    .process-card:hover {
        transform: translateX(-5px) scale(1.01);
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 260px;
    }

    
    .section-header h2 {
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 1.2rem;
    }

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

    .website-preview {
        transform: perspective(600px) rotateY(-3deg) rotateX(5deg);
        max-width: 100%;
        height: 100px;
    }

    .portfolio-card:hover .website-preview {
        transform: perspective(600px) rotateY(0deg) rotateX(3deg);
    }

    .portfolio-banner {
        height: 140px;
        padding: 0.75rem;
    }

    .rating-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stars {
        align-self: flex-end;
    }


    /* Portfolio & FAQ */
    .portfolio,
    .faq {
        padding: 3rem 0;
    }
    

    /* About Section */
    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .stats {
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .stat {
        min-width: 100px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .stat p {
        font-size: 0.95rem;
    }

    /* Contact Section */
    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        margin-top: 2rem;
    }
    
    .contact-form {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .contact-form .btn {
        width: auto;
        align-self: center;
        min-width: 200px;
        max-width: 280px;
    }


    .section-header {
        margin-bottom: 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Typography */
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.05;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    /* Spacing */
    .hero {
        padding: 4rem 0 2.5rem;
    }

    .hero-container,
    .container {
        padding: 0 1rem;
    }

    .about,
    .contact,
    .portfolio,
    .faq {
        padding: 2.5rem 0;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: none;
    }
    
    .contact-form .btn {
        width: auto;
        align-self: center;
        min-width: 180px;
        max-width: 250px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    /* Extra compact process stack for small screens */
    .process-stack {
        padding: 0.5rem 0;
    }
    
    .process-card {
        padding: 0.8rem;
        margin-bottom: 0.6rem;
        gap: 0.6rem;
        border-radius: 15px;
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }
    
    .card-icon i {
        font-size: 0.9rem;
    }
    
    .card-content h4 {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .card-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }


    /* Stats */
    .stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .stat {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .stat h3 {
        font-size: 1.3rem;
    }
    
    .stat p {
        font-size: 0.75rem;
        line-height: 1.2;
    }


    /* Form */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }


    /* Navigation */
    .nav-link {
        font-size: 1rem;
    }

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

    .section-header p {
        font-size: 1rem;
    }
    
    /* Footer - Extra compact for small screens */
    .footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr; /* Keep 3 columns even on small screens */
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section:first-child {
        display: none; /* Keep Gimfy description hidden on small screens */
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.3rem;
    }
    
    .footer-section ul li a {
        font-size: 0.95rem;
        padding: 0.2rem 0;
    }
    
    .footer-bottom {
        padding-top: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }


    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    .nav-link:active {
        color: var(--color-accent);
        background-color: var(--color-muted);
    }
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .contact-item,
    .footer-section ul li a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 1rem 0;
    }
}

/* Reduce shadows on mobile devices */
@media (max-width: 768px) {
    /* Reduce all box shadows on mobile */
    .navbar {
        box-shadow: 0 1px 8px rgba(53, 59, 60, 0.08) !important;
    }
    
    .portfolio-card,
    .faq-list details {
        box-shadow: 0 2px 8px rgba(53, 59, 60, 0.06) !important;
    }
    
    .btn-primary {
        box-shadow: 0 2px 6px rgba(53, 59, 60, 0.1) !important;
    }
    
    .btn-primary:hover {
        box-shadow: 0 3px 10px rgba(53, 59, 60, 0.12) !important;
    }
    
    .nav-menu {
        box-shadow: 0 5px 15px rgba(53, 59, 60, 0.1) !important;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
