/*
Theme Name: Farhan Hadis Portfolio
Description: A premium, fully editable personal portfolio theme for brand identity designers.
Version: 27.0
Author: Farhan Hadis
*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Lobster&display=swap');

:root {
    --primary: #ff3c00;
    --primary-hover: #e63600;
    --dark-bg: #0a0a0a;
    --card-bg: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --section-padding: 8rem 2rem;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem;
    height: auto !important;
    /* Let padding define height */
    padding: 1.1rem 2rem;
    /* Larger padding for "lomba" and center */
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    /* Match outline border width */
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: normal;
    white-space: nowrap;
}

.btn-primary {
    background-color: #ff3c00;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 60, 0, 0.3);
}

.btn-primary:hover {
    background-color: #e63600;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 60, 0, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.btn-view-work {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem 2rem !important;
    /* Match btn-primary padding */
    line-height: normal !important;
    white-space: nowrap !important;
    margin-top: 0 !important;
    vertical-align: middle !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
}

/* Stats Section */
.stats {
    background-color: #000000 !important;
    padding: 4rem 0;
    margin-top: -2px;
    /* Pull it up slightly to overlap hero */
    position: relative;
    z-index: 4;
    /* Ensure it sits on top of hero */
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    /* White Number */
}

.plus-sign {
    color: #ff3c00;
    /* Orange Plus */
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

#header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar {
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    color: #ccc;
    transition: all 0.3s ease;
}

#header.scrolled .top-bar {
    display: none;
}

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

.top-bar a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #ff3c00;
}

.top-bar .divider {
    margin: 0 10px;
    color: #666;
}

.main-header {
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
}

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

@media (min-width: 993px) {
    .main-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    /* Increased size significantly as requested */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-weight: 300;
    font-size: 0.95rem;
    color: #ffffff;
}

/* Ensure button inside nav is white */
.nav-links .btn-primary {
    color: white !important;
    padding: 1rem 2rem !important;
    /* Larger button */
    font-size: 1.1rem !important;
    /* Larger text */
    font-weight: 700;
}

.nav-links .btn-primary:hover {
    color: var(--primary) !important;
    background: white;
}

.nav-links a:hover {
    color: #ffffff;
    opacity: 0.8;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Dropdown Menu */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 220px;
    padding: 1rem 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 2rem;
}

/* Mobile Dropdown adjustment */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* Hidden by default on mobile */
        padding-left: 1rem;
    }

    .nav-links li:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s forwards;
    }

    /* Ensure dropdowns work with helper class for JS */
    .dropdown-menu.show {
        display: block;
        animation: fadeIn 0.3s forwards;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    /* Force full viewport width ignoring parent */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Hero Video & Overlay additions */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    /* Behind content but above background */
    opacity: 1;
    /* Match demo's brightness */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.6) 60%,
            rgba(0, 0, 0, 0.95) 100%);
    z-index: 2;
    /* Above video */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    position: relative;
    z-index: 3;
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 0 auto;
    width: 100%;
}

/* Text Content (Centered as wp-theme) */
.hero-content {
    flex: 1;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 0.5rem;
    color: #ffffff;
    margin-right: -0.2em; /* Fix visual centering offset caused by trailing letter-spacing */
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #ffffff;
    opacity: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 80%;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.scroll-down-icon {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #ffffff;
    animation: bounce 2s infinite;
    z-index: 20;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Hero Image (Right) */
.hero-image {
    flex: 0.8;
    /* Reduce image container space */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 140%;
    /* Huge size */
    height: auto;
    max-height: 900px;
    object-fit: contain;
    /* White Icon */
    filter: brightness(0) invert(1) drop-shadow(0 0 60px rgba(255, 60, 0, 0.3));
    transform: rotate(-20deg) translateX(-40px) translateY(-40px) scale(1.65);
    /* Slightly reduced scale as requested (was 1.85) */
    opacity: 0.9;
    /* Higher base opacity for visibility */
    mask-image: linear-gradient(to right, transparent 5%, black 75%);
    -webkit-mask-image: linear-gradient(to right, transparent 5%, black 75%);
    /* Smooth fade-in from left to right */
    pointer-events: none;
    /* Prevent interference */
}

/* Button Update */
.btn-primary {
    background: #ff5722;
    /* Orange from logo */
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: white;
    color: #ff5722;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.3);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        /* Image top, text bottom */
        text-align: center;
        padding-top: 2rem;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
        white-space: normal;
        /* Fix text overflow on mobile */
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .hero-image img {
        max-height: 300px;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

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

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Reduced from 3rem */
    }
}

/* Clients Grid (Restored Glass Layout) */
.clients {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Clean Nondon.co Style for Client Logos */
.client-slide {
    flex: 0 0 50%;
    /* Default Mobile: 2 items */
    box-sizing: border-box;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .client-slide {
        flex: 0 0 33.333%;
        /* Tablet: 3 items */
    }
}

@media (min-width: 1024px) {
    .client-slide {
        flex: 0 0 14.2857%;
        /* Desktop: 7 items */
    }
}

.client-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.client-card .client-logo,
.client-card img {
    max-width: 100%;
    max-height: 50px;
    /* Reduced slightly for row fit */
    height: auto;
    width: auto;
    display: block;
    /* Grayscale & Opacity */
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s ease;
}

.client-card:hover .client-logo,
.client-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.clients-section {
    padding: 3rem 0;
    background: transparent;
}

/* Clients Switcher */
/* The following styles were part of the Clients Switcher section and are now replaced by the restored glass layout.
   The original .clients definition was also updated above. */
/*
.clients {
    padding: 2rem 0;
    background: var(--card-bg);
}
.clients-switcher {
    display: flex;
    justify-content: center;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 80px;
}
.client-logo {
    max-width: 80px;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.5s ease;
    transform: scale(1);
}
.client-logo.fade-out {
    opacity: 0;
    transform: scale(0.9);
}
.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .clients-switcher {
        gap: 2rem;
    }
    .client-logo {
        max-width: 60px;
    }
}
*/
/* The following .client-card and .client-logo styles were part of the Clients Switcher section and are now replaced. */
/* The client-card and client-logo styles for the Switcher section were removed */

/* Randomized delays using nth-child for organic feel */
.client-logo:nth-child(2n) {
    animation-duration: 5s;
    animation-delay: 0.5s;
}

.client-logo:nth-child(3n) {
    animation-duration: 4.5s;
    animation-delay: 1s;
}

.client-logo:nth-child(4n) {
    animation-duration: 3.5s;
    animation-delay: 0.2s;
}

.client-logo:nth-child(5n) {
    animation-duration: 4s;
    animation-delay: 1.5s;
}

.client-logo:nth-child(7n) {
    animation-duration: 6s;
    animation-delay: 0.8s;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    animation-play-state: paused;
    /* Stop floating on hover */
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 60, 0, 0.4));
    /* Glow effect */
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .client-card {
        padding: 1rem;
        height: 100px;
    }

    .client-logo {
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Services */
.services {
    padding: var(--section-padding);
}

/* Services (Zig-Zag Layout - For Services Page) */
.services {
    padding: var(--section-padding);
    overflow: hidden;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

/* Homepage Services Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    :root {
        --section-padding: 4rem 1.5rem;
        /* Reduced mobile padding */
    }
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: #1a1a1a;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.service-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Zig-Zag: Reverse every other row */
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-image:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(255, 60, 0, 0.15);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-row:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
    padding: 1rem;
}

.service-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-text:hover {
    gap: 1rem;
    color: var(--text-main);
}

/* Responsive Services */
@media (max-width: 992px) {
    .service-row {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .services-container {
        gap: 4rem;
    }

    .service-content h3 {
        font-size: 2rem;
    }

    .btn-text {
        color: white;
        /* Ensure visible on mobile if needed */
        background: var(--primary);
        padding: 0.8rem 1.5rem;
        border-radius: 30px;
    }

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

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: var(--card-bg);
    /* Clean background */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Process Section */
.process {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: var(--primary);
    color: white;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfolio Filters */
.portfolio-filters {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 60, 0, 0.3);
    transform: translateY(-2px);
}

/* Portfolio Section - Dark Mode Integration */
.portfolio {
    padding: var(--section-padding);
    background: #0d0d0d;
    /* Matching dark theme */
    color: white;
}

/* Reset to global styles */
.portfolio .section-title {
    color: white;
}

.portfolio .section-subtitle {
    color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Smaller min-width for mobile */
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    /* height: 320px; REMOVED to allow aspect ratio */
    aspect-ratio: 3/2;
    /* Enforce 1440x960 ratio */
    cursor: pointer;
    background: var(--card-bg);
    /* Dark card bg */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-0.5rem);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Internal Card Structure */
.portfolio-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    /* Dark Gradient */
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-letter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    /* Subtle white opacity */
    user-select: none;
}

.placeholder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.placeholder-icon i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.portfolio-item:hover .placeholder-icon i {
    color: white;
}

.placeholder-icon span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Using an actual IMG if present */
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item-nondon:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(1rem);
    transition: transform 0.5s ease 0.1s;
}

.portfolio-overlay p {
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.05em;
    transform: translateY(1rem);
    transition: transform 0.5s ease 0.2s;
}

.portfolio-btn {
    margin-top: 1.5rem;
    display: inline-block;
    border: 2px solid var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(1rem);
    transition: all 0.3s ease 0.3s;
}

.portfolio-btn:hover {
    background: var(--primary);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-btn,
.portfolio-item-nondon:hover .portfolio-overlay h3,
.portfolio-item-nondon:hover .portfolio-overlay p,
.portfolio-item-nondon:hover .portfolio-btn {
    transform: translateY(0);
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.btn-primary {
    background: #ff3c00;
    color: #fff;
    padding: 1rem 2.5rem;
    border: 2px solid #ff3c00;
    /* High contrast border */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #fff;
    /* White background on hover */
    color: #ff3c00;
    /* Orange text on hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 60, 0, 0.2);
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    /* Glassmorphism base */
    backdrop-filter: blur(10px);
    padding: 1.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn-primary {
    margin-top: auto;
    width: 100%;
    /* Full width button */
    display: block;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 60, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 60, 0, 0.05) 100%);
    box-shadow: 0 15px 30px rgba(255, 60, 0, 0.15);
    transform: scale(1.05);
    /* Slightly larger */
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 60, 0, 0.25);
}

.pricing-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pricing-card.featured h3 {
    color: white;
    font-weight: 700;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.pricing-card.featured .price {
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.plan-note {
    margin-bottom: 1rem;
    color: #aaa;
    font-size: 0.95rem;
    min-height: 3rem;
    /* Align buttons */
}

.pricing-features {
    text-align: left;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.pricing-features li {
    margin-bottom: 0.5rem;
    color: #ddd;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 0.9rem;
    background: rgba(255, 60, 0, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Testimonials */
.testimonials {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.testimonials-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    /* For larger screens, show more slides */
}

@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 50%;
        /* Show 2 slides */
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        min-width: 33.333%;
        /* Show 3 slides */
    }
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: var(--primary);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #ddd;
    flex-grow: 1;
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.client-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Slider Navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

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

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Team Section */
.team {
    margin-bottom: 5rem;
    /* Added spacing as requested */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive grid */
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: #333;
    overflow: hidden;
    border: 3px solid var(--primary);
    position: relative;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.team-info p {
    color: #e0e0e0;
    /* Off-white designated as per request */
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* FAQ & Newsletter Styles */
.faq-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.faq-answer {
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-cta {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.faq-cta h3 {
    margin-bottom: 0.5rem;
}

.faq-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Newsletter Banner (Floating above footer) */
.newsletter-banner {
    background: linear-gradient(to right, #222, #1a1a1a);
    padding: 2rem 3rem;
    border-radius: 15px;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    transform: translateY(-50%);
    margin-top: -2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 20;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newsletter-content i {
    font-size: 1.5rem;
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
}

.newsletter-box input {
    width: 100%;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 5px;
    border: none;
    background: #222;
    color: white;
}

/* Footer */
footer {
    padding-top: 2rem;
    background: #050505;
    border-top: 1px solid #111;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.footer-col p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #111;
    color: #555;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {

    .faq-grid,
    .newsletter-banner {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .newsletter-banner {
        transform: translateY(0);
        margin-top: 2rem;
    }

    footer {
        padding-top: 4rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Process Section (Connected Timeline) */
.process {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 5rem;
    position: relative;
    gap: 2rem;
}

/* Connecting Line */
.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    /* Aligns with icon center */
    left: 50px;
    right: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.process-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    /* Sit on top of line */
}

/* Hover Effects */
.process-step:hover .process-icon-wrapper {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 60, 0, 0.4);
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobile Timeline (Vertical) */
@media (max-width: 992px) {
    .process-grid {
        flex-direction: column;
        gap: 3rem;
        padding-left: 2rem;
    }

    .process-grid::before {
        top: 0;
        bottom: 0;
        left: 38px;
        /* Line runs down left side */
        width: 2px;
        height: 100%;
        right: auto;
    }

    .process-step {
        display: flex;
        text-align: left;
        align-items: flex-start;
        padding: 0;
    }

    .process-icon-wrapper {
        margin: 0 2rem 0 0;
        min-width: 80px;
    }
}

/* About Us Page Styles */
.page-header {
    height: 50vh;
    /* Reduced height for better fold visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 60, 0, 0.1) 0%, transparent 70%);
    margin-top: 0;
    /* Remove fixed margin, let flex handle it */
    padding-top: 80px;
    /* Internal padding for fixed nav */
}

.page-header h1 {
    font-size: 4rem;
    /* Larger impact */
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.about-story {
    padding: var(--section-padding);
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    /* More breathing room */
    align-items: center;
}

.story-content h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    display: inline-block;
}

.story-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.story-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.mission-box {
    background: linear-gradient(145deg, #111 0%, #050505 100%);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.mission-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.mission-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mission-box h3 i {
    color: var(--primary);
    background: rgba(255, 60, 0, 0.1);
    padding: 10px;
    border-radius: 50%;
    font-size: 1rem;
}

.mission-box p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    padding-left: 3.5rem;
    /* Indent to align with text start */
}

.mission-box p:last-child {
    margin-bottom: 0;
}

/* Redesigned Stats Section (Cards) */
.about-stats {
    padding: 5rem 0;
    background: #050505;
}

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

.stat-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(255, 60, 0, 0.1) 0%, transparent 100%);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background: #000000;
}

.testimonials-slider-container {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    /* Hide overflow for slider */
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    padding: 15px;
    flex: 0 0 100%;
    /* Default Mobile */
    max-width: 100%;
}

@media (min-width: 768px) {
    .testimonial-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* New Dark Card Design */
.testimonial-card {
    background: #0d0d0d;
    /* Slightly lighter than bg */
    border: 1px solid rgba(255, 69, 0, 0.3);
    /* Subtle orange border everywhere */
    border-left: 4px solid #ff4500;
    /* Strong left accent */
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #ff4500;
}

/* Stars */
.stars {
    display: block;
    margin-bottom: 1.5rem;
    color: #ffb400;
    /* Gold/Yellow stars */
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    font-style: normal;
    /* Clean text */
    margin-bottom: 2rem;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.client-photo-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.client-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.client-details h4 {
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 2px 0;
    font-size: 0.95rem;
}

.client-details p {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
}

/* Redesigned CTA Banner */
.cta-banner {
    margin: 5rem 0;
    background: url('hero-bg.jpg') center/cover no-repeat fixed;
    /* Or gradient if image missing */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), linear-gradient(45deg, #1a1a1a, #000);
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 60, 0, 0.15) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-banner p {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Team Grid Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Removed another duplicate hero block */

/* Removed duplicate hero block */

/* Fix for Portfolio Thumbnail Height Consistency */
.portfolio-thumb,
.portfolio-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer Grid Styles (for about.html and services.html) */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-info .brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-info .brand span {
    color: var(--primary);
}

.footer-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-contact ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-contact li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
}

.footer-newsletter p {
    color: var(--text-muted);
    margin: 1rem 0;
}

.footer-newsletter .newsletter-form {
    flex-direction: column;
    max-width: 100%;
}

.footer-newsletter .newsletter-form input {
    width: 100%;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-links,
    .social-icons {
        justify-content: center;
    }
}

/* =========================================
   Nondon Style Portfolio Redesign
   ========================================= */
/* Portfolio Grid - 3 Columns */
.portfolio-grid-nondon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    margin-top: 3rem;
}

/* Portfolio Item Wrapper */
.portfolio-item-nondon {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Image Container */
.portfolio-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    /* Standard aesthetic ratio */
    border-radius: 16px;
    /* Rounded corners like Nondon */
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #2a2a2a;
    /* Placeholder color */
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Effect: Scale Image */
.portfolio-item-nondon:hover .portfolio-thumb img {
    transform: scale(1.05);
}

/* Content Area */
.portfolio-content-nondon {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Typography */
.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Arrow Icon Animation */
.portfolio-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.portfolio-item-nondon:hover .portfolio-arrow {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(-45deg);
    /* Angled arrow effect */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .portfolio-grid-nondon {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .portfolio-grid-nondon {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Portfolio Details Page (Clean & Modern)
   ========================================= */
.portfolio-details-page {
    padding-top: 140px;
    /* More breathing room */
    padding-bottom: 8rem;
}

/* Breadcrumb & Header */
.breadcrumb-area {
    margin-bottom: 4rem;
}

.breadcrumb {
    display: flex;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .active {
    color: white;
}

.portfolio-details-page .section-title {
    font-size: 3.5rem;
    /* Hero size type */
    line-height: 1.1;
    margin-bottom: 0;
}

/* Main Layout Grid */
.portfolio-details-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Slightly narrower, cleaner sidebar */
    gap: 6rem;
    /* Large gap for whitespace */
    align-items: start;
}

/* Gallery Section (Left) */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    /* More space between images */
}

.project-img {
    width: 100%;
    border-radius: 8px;
    /* Softer, smaller radius */
    overflow: hidden;
    /* Removed border and background for clean look */
}

.project-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.project-img:hover img {
    transform: scale(1.02);
    /* Subtle zoom */
}

/* Sidebar Section (Right) */
.project-sidebar {
    position: sticky;
    top: 140px;
    /* Removed background and border for floating text look */
    padding: 1rem 0;
    /* Align with text */
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.project-info-list {
    margin-bottom: 3rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    /* More subtle label */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.info-item p {
    color: white;
    font-size: 1.1rem;
    /* Larger value text */
    font-weight: 400;
    line-height: 1.4;
}

/* Share Buttons */
.share-project h4 {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: white;
}

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

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Minimal border */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.share-btn:hover {
    background: white;
    color: black;
    border-color: white;
    transform: translateY(-2px);
}

/* CTA Box within Sidebar - Minimalist */
.sidebar-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
    text-align: left;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.sidebar-cta h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta .btn {
    width: auto;
    padding: 0.8rem 2rem;
    margin-top: 1rem;
    border-radius: 30px;
}

/* Responsive Details */
@media (max-width: 992px) {
    .portfolio-details-page .section-title {
        font-size: 2.5rem;
    }

    .portfolio-details-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .project-sidebar {
        position: static;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* =========================================
   Client Slider (Marquee)
   ========================================= */
.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.client-card {
    background: #ffffff;
    /* White background */
    border-radius: 50%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.client-card img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.8;
    /* Higher initial opacity */
    filter: none;
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* No background change on hover needed if it stays white */
}

.client-card:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   Service Details Accordion
   ========================================= */
.accordion-item {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active {
    background: rgba(26, 26, 26, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-header .icon-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.accordion-header .icon-title i {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.accordion-item.active .accordion-header .icon-title i {
    background: var(--primary-color);
    color: white;
}

.accordion-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.4s ease;
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.content-inner {
    padding: 0 2rem 2rem 2rem;
}

.service-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-features h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-features li {
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.service-image {
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.accordion-item:hover .service-image img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-image {
        order: -1;
        height: 250px;
    }

    .service-features ul {
        grid-template-columns: 1fr;
    }
}

/* --- UPDATED CLIENT LOGO STYLES --- */
.client-card {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.client-card .client-logo,
.client-card img {
    max-height: 800px !important;
    /* Larger Logo */
    opacity: 1 !important;
    /* Full Visibility */
    filter: none !important;
    /* Original Colors */
    transform: none !important;
    animation: none !important;
}

/* Fix Hover Effects */
.client-card:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.client-card:hover .client-logo,
.client-card:hover img {
    filter: none !important;
    transform: scale(1.1) !important;
    /* Slight Zoom on Hover */
}

/* =========================================
   MASTER FIX: HEADER, HERO, & ADMIN BAR
   (Replace all previous custom CSS with this)
   ========================================= */
/* 1. ADMIN BAR FIX (Show it!) */
#wpadminbar {
    display: block !important;
    /* Force it to show */
}

/* 2. RESET MARGINS (But respect Admin Bar) */
body {
    margin: 0 !important;
}

/* 3. HEADER POSITIONING */
#header {
    position: fixed !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: transparent !important;
    top: 0 !important;
    margin-top: 0 !important;
}

/* 4. MOVE HEADER DOWN IF ADMIN BAR IS PRESENT */
/* This prevents the header from hiding behind the black admin bar */
body.admin-bar #header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #header {
        top: 46px !important;
    }
}

/* 5. TOP BAR STYLING */
.top-bar {
    background: rgba(0, 0, 0, 0.4) !important;
    display: block !important;
    padding: 5px 0 !important;
    /* Slim Top Bar */
    border-bottom: none !important;
}

.top-bar-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.top-bar a {
    color: #cccccc !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

/* 6. MAIN HEADER STYLING */
.main-header {
    background: transparent !important;
    padding: 8px 0 !important;
    display: block !important;
}

.main-header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* 7. COLORS & LOGO */
.nav-links a {
    color: #ffffff !important;
    /* White Menu Text */
    font-weight: 700 !important;
    font-size: 16px !important;
}

.logo img {
    height: 50px !important;
    filter: none !important;
    /* Show Original Logo Colors */
}

/* 8. CALL BUTTON (Square + Hover Effect) */
.login-btn {
    background: #ff3c00 !important;
    color: #ffffff !important;
    padding: 10px 30px !important;
    border-radius: 2px !important;
    /* Square Shape */
    font-weight: bold !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.login-btn:hover {
    background: #ffffff !important;
    /* White on Hover */
    color: #ff3c00 !important;
    /* Orange Text on Hover */
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(255, 60, 0, 0.4) !important;
}

/* Removed hero overrides to allow main styles to work */

/* Stats Section */
.stats {
    background-color: #000000 !important;
    padding: 4rem 0;
    margin-top: -4px;
    /* Pull it up slightly to overlap hero */
    position: relative;
    z-index: 4;
    /* Ensure it sits on top of hero */
}

/* =========================================================================
   RESUME SECTION
   ========================================================================= */
#resume .section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.resume-main-title {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-primary);
}

.resume-timeline {
    position: relative;
}

.resume-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 3rem;
    border-left: 1px solid #444; /* Darker border for the timeline */
}

.resume-item:last-child {
    padding-bottom: 0;
}

.resume-item::before {
    content: '';
    position: absolute;
    left: -1.5px;
    top: 5px;
    width: 3px;
    height: 1.5rem;
    background-color: #ff3c00;
}

.resume-item-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.resume-item-meta {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 1rem;
    font-weight: 500;
}

.resume-item-desc {
    font-size: 0.95rem;
    color: #aaaaaa;
    line-height: 1.6;
}

/* Skills section */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #333333;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #ff3c00;
    transition: width 1.5s ease-in-out;
}

.cv-btn {
    border-color: #ffffff;
    color: #ffffff;
    padding: 1rem 3rem;
    font-weight: 600;
    display: inline-block;
    background: transparent;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.cv-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

@media (max-width: 992px) {
    .resume-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =========================================================================
   ABOUT SPLIT SECTION
   ========================================================================= */
.about-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding: 2rem 0;
}

.about-split-image-wrapper {
    position: relative;
    max-width: 90%;
}

.about-split-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    background-color: var(--border-color);
    filter: grayscale(100%);
    transition: filter var(--transition);
    position: relative;
    z-index: 2;
}

.about-split-image-wrapper:hover .about-split-image {
    filter: grayscale(0%);
}

.about-split-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--text-main);
    z-index: 1;
}

.about-split-content {
    display: flex;
    flex-direction: column;
}

.about-split-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-split-facts {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.about-split-fact-item {
    display: flex;
    flex-direction: column;
}

.about-split-fact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

@media (max-width: 991px) {
    .about-split-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-split-image-wrapper {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* =========================================================================
   FAQ SECTION
   ========================================================================= */
.faq-question:hover span {
    color: var(--primary);
}
.faq-item.active .faq-question i {
    transform: rotate(45deg); /* Turns + into x */
}
.faq-item.active .faq-answer {
    max-height: 500px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem !important;
}

@media (max-width: 991px) {
    .faq-split-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}