:root {
    --primary-color: #d4af37;
    --primary-gradient: linear-gradient(135deg, #d4af37 0%, #f9e29c 100%);
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-white: #f8fafc;
    --text-dim: #94a3b8;
    --accent-blue: #38bdf8;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-white: #0f172a;
    --text-dim: #475569;
}

.light-theme #navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .nav-links a {
    color: #475569;
}

.light-theme .nav-links a:hover {
    color: var(--primary-color);
}

.light-theme .logo {
    color: #0f172a;
}

.light-theme .theme-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.light-theme .menu-toggle .bar {
    background-color: #0f172a;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(3);
}

@media (max-width: 1024px) {
    .custom-cursor {
        display: none;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
}

span {
    color: var(--primary-color);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

#navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-white);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    opacity: 1;
}

/* Specific styling for the Inquiry Button in the Navbar */
.nav-links li:last-child a.btn {
    background: var(--primary-gradient);
    color: #1a1a1a;
    /* Dark text for high contrast on gold */
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-links li:last-child a.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.nav-links li:last-child a.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: #000;
}

.nav-links a::after {
    display: none;
    /* Removing the old underline for a cleaner look */
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.menu-toggle span:nth-child(2) {
    width: 20px;
}

.menu-toggle:hover span:nth-child(2) {
    width: 28px;
}

.menu-toggle.active span:nth-child(2),
.menu-toggle.active .bar:nth-child(2) {
    width: 0;
    opacity: 0;
}

.menu-toggle.active span:nth-child(1),
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(3),
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.theme-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(255, 62, 0, 0.1), transparent);
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-size: 1.25rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .page-header h1 {
        font-size: 2.75rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }
}

/* Standard Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    /* Force pill shape globally */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    text-align: center;
}

.btn.primary {
    background: var(--primary-gradient);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.btn.primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: #000;
}

.btn.primary:hover::after {
    opacity: 1;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* High-Contrast Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: #ffffff !important;
    border: 2px solid transparent;
    border-radius: 12px;
    color: #0f172a !important;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    /* Disciplined vertical rhythm */
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-bottom: 0;
}

#newsletter-form input {
    margin-bottom: 0;
    /* No margin in horizontal flex forms */
}

input::placeholder,
textarea::placeholder {
    color: rgba(15, 23, 42, 0.5);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
    background: #ffffff !important;
}

/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: block;
    /* Ensure anchor cards behave correctly */
    text-decoration: none;
    /* Reset for anchor cards */
    color: inherit;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    color: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-icon:hover {
    transform: scale(1.1) rotate(45deg);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    color: #000;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Services (Expertise) Section Refinement */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

.service-card::before {
    content: attr(data-index);
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.03);
    z-index: -1;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    color: rgba(212, 175, 55, 0.05);
    transform: scale(1.1) rotate(-10deg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-link {
    margin-top: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.service-link:hover {
    gap: 1rem;
}

/* Light Theme Overrides for Services */
.light-theme .service-card {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.light-theme .service-card::before {
    color: rgba(0, 0, 0, 0.03);
}

/* Services & Process Refinement (Legacy) */
.dim-text {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Process Timeline Enhancement */
.process-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(212, 175, 55, 0.1);
    z-index: 0;
}

/* Animated Progress Line */
.process-line-progress {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: var(--primary-gradient);
    z-index: 1;
    transition: height 1s ease-out;
}

.process-step {
    position: relative;
    width: 50%;
    padding: 2rem 4rem;
    margin-bottom: 2rem;
    z-index: 2;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.step-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
}

.process-step:hover .step-content {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.step-num {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--primary-color);
    z-index: 3;
    transform: translateY(-50%);
}

.process-step:nth-child(odd) .step-num {
    right: -25px;
}

.process-step:nth-child(even) .step-num {
    left: -25px;
}

.process-step h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.process-step p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

@media (max-width: 768px) {

    .process-container::before,
    .process-line-progress {
        left: 20px;
        transform: none;
    }

    .process-step {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px;
        padding-right: 0;
    }

    .step-num {
        left: -5px !important;
        right: auto !important;
    }
}

.view-project {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Gold Accents for Agency Theme */
:root {
    --primary-color: #d4af37;
    --primary-gradient: linear-gradient(135deg, #d4af37 0%, #f9e29c 100%);
}

.skill-category h3 {
    margin-bottom: 1rem;
}


/* Team Section */
.team-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-card span {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Project Estimator */
.estimator-container {
    background: var(--bg-card);
    border-radius: 40px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.estimator-box h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.estimator-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.estimator-item {
    background: rgba(30, 41, 59, 0.4);
    padding: 1.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.estimator-item::before {
    content: '';
    width: 16px;
    height: 16px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.estimator-item.active {
    background: rgba(212, 175, 55, 0.08);
    /* Slightly more subtle tint */
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.estimator-item.active::before {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    background-size: 80%;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.estimator-item input {
    display: none;
    /* Hide real checkbox */
}

.estimator-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.estimator-result {
    background: var(--bg-dark);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-display {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-display .currency {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.estimator-result p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .estimator-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .estimator-grid {
        grid-template-columns: 1fr;
    }
}

/* Marquee Section */
.marquee-section {
    padding: 0;
    background: rgba(212, 175, 55, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 100px;
    padding: 3rem 0;
}

.marquee-content span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 5px;
    opacity: 0.3;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-white);
}

.client-meta strong {
    display: block;
    color: var(--primary-color);
}

.client-meta span {
    font-size: 0.9rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Multi-step Form & Discovery Wizard */
.contact-form-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 30px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 33.33%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepIn 0.5s ease-out;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step h4 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-white);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    appearance: none;
    cursor: pointer;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-content {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* FAB Removed as per Phase 18 */

/* Contact Footer Correction */
.contact-methods {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.method strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Footer Enhancements */
footer {
    padding: 6rem 0 3rem;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    text-align: left;
    margin-bottom: 4rem;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-info p {
    max-width: 300px;
    font-size: 1rem;
}

.footer-newsletter h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-newsletter h4::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary-color);
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
}

#newsletter-form {
    display: flex;
    background: #ffffff;
    padding: 6px;
    border-radius: 50px;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

#newsletter-form input {
    background: transparent !important;
    box-shadow: none;
    padding: 0.8rem 1.5rem;
    margin-bottom: 0;
    border: none !important;
    border-radius: 0;
    color: #0f172a !important;
    flex: 1;
}

#newsletter-form input:focus {
    box-shadow: none;
    background: transparent !important;
}

#newsletter-form .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    white-space: nowrap;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #newsletter-form {
        max-width: 100%;
        border-radius: 12px;
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 1rem;
        box-shadow: none;
        border: none;
    }

    #newsletter-form input {
        background: #ffffff !important;
        border-radius: 12px !important;
        padding: 1.2rem 1.5rem;
    }

    #newsletter-form .btn {
        width: 100%;
    }
}

/* Service Card Links */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.service-link::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--text-white);
    gap: 1.2rem;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* Page Headers */
.page-header {
    padding: 12rem 0 6rem;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.03), transparent);
    text-align: center;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.page-header h1 span {
    color: var(--primary-color);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Detailed Services Grid */
.services-detailed-grid {
    display: grid;
    gap: 4rem;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 3rem;
    padding: 4.5rem;
    background: var(--bg-card);
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .service-detail-card {
        padding: 3rem;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .service-detail-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        border-radius: 30px;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .service-detail-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-detail-content div[style*="flex"] {
        flex-direction: column !important;
        width: 100%;
    }

    .service-detail-content .btn,
    .service-detail-content .service-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.service-detail-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.service-detail-icon {
    font-size: 4.5rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.1));
}

.service-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0 3rem;
    list-style: none;
}

.detail-list li::before {
    content: '→';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

/* Portfolio Filters */
.filter-group {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 4.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .filter-group {
        gap: 0.75rem;
        margin-bottom: 3rem;
    }

    .filter-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.03);
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
        margin: 5px;
    }
}

@media (max-width: 600px) {
    .filter-group {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        min-width: 100px;
        margin: 5px;
    }
}

.filter-btn {
    padding: 0.8rem 2.22rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gradient);
    color: #1a1a1a;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

/* CTA Section */
.cta-section {
    background: rgba(212, 175, 55, 0.02);
    border-radius: 60px;
    margin: 4rem 2rem;
    padding: 6rem;
}

@media (max-width: 992px) {
    .cta-section {
        margin: 3rem 2rem;
        padding: 4rem 3rem;
    }
}

@media (max-width: 768px) {
    .cta-section {
        margin: 2rem 1rem;
        padding: 3rem 1.5rem;
        border-radius: 30px;
    }

    .cta-section h2 {
        font-size: 2.25rem !important;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .service-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 3rem;
    }
}

/* Form Validation Styles */
input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

#newsletter-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
    position: relative;
    padding-left: 20px;
}

#newsletter-feedback:not(:empty)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 3px 0;
    transition: var(--transition-smooth);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
        /* Priority visibility above sidebar */
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
        display: flex;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    /* Toggle state handled globally above for both span and .bar classes */
}

/* Notification Engine */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.25rem 2rem;
    border-radius: 50px;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    pointer-events: none;
}

.notification.active {
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-white);
    font-weight: 500;
}

.notification-icon {
    font-size: 1.2rem;
}

/* Loaders */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.client-logo {
    text-decoration: none;
    transition: var(--transition-smooth);
}

.client-logo:hover {
    transform: scale(1.1);
    opacity: 1 !important;
}