:root {
    --primary: #00A896;
    --primary-dark: #008f80;
    --secondary: #028090;
    --accent: #FCA311;
    --background: #0A0F1A;
    --surface: #121927;
    --text: #F8F9FA;
    --text-muted: #ADB5BD;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.containerSection {
    padding: 6rem 0;
}

.narrow {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

.justify-center {
    justify-content: center;
}

/* Typography */
h1,
section h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), #00E5FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 168, 150, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 168, 150, 0.4);
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--glass);
    color: var(--white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--glass-border);
    transform: translateY(-3px);
}

.full-width {
    width: 100%;
}

/* Header */
.header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 15, 26, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

/* Open State for Toggle */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('caribbean-code-studios-trinidad-web-design.png');
    background-size: cover;
    background-position: center;
}

/* Gliding Lines Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-line {
    position: absolute;
    width: 2px;
    height: 200%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 168, 150, 0.1),
            rgba(0, 168, 150, 0.2),
            rgba(0, 168, 150, 0.1),
            transparent);
    top: -50%;
    left: 10%;
    transform: rotate(35deg) translate3d(0, 0, 0);
    will-change: transform;
    animation: glide 15s linear infinite;
}

.bg-line:nth-child(2) {
    left: 35%;
    animation-delay: -3s;
    animation-duration: 20s;
    opacity: 0.7;
}

.bg-line:nth-child(3) {
    left: 60%;
    animation-delay: -7s;
    animation-duration: 18s;
}

.bg-line:nth-child(4) {
    left: 85%;
    animation-delay: -12s;
    animation-duration: 25s;
    opacity: 0.5;
}

@keyframes glide {
    0% {
        transform: rotate(35deg) translate3d(0, -20%, 0);
    }

    100% {
        transform: rotate(35deg) translate3d(0, 20%, 0);
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--background), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

/* Tech Stack Banner */
.tech-stack-banner {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 5rem;
    padding-left: 5rem;
    animation: scroll 40s linear infinite;
}

.tech-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
}


.tech-item:hover {
    opacity: 1;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 168, 150, 0.3);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

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

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

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

.industry-link-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    font-size: 0.95rem;
}

.industry-link-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 168, 150, 0.2);
}

.industry-link-featured {
    border-color: var(--primary) !important;
}

.list-styled {
    padding-left: 1.5rem;
}

/* Form Success State */
.form-success-box {
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--primary);
    border-radius: 12px;
}

.form-success-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.card {
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.card-dark {
    background-color: var(--surface);
}

.card-featured {
    background-color: var(--primary);
    color: var(--white);
}

.card-featured h3 {
    color: var(--white);
}

.card ul {
    list-style: none;
    margin-top: 1.5rem;
}

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

/* Pricing */
.pricing-card-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    max-width: 400px;
    flex: 1;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.pricing-card.coming-soon {
    opacity: 0.8;
}

.pricing-card.card-care-plan {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.pricing-card.card-care-plan:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--background);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
    margin-top: 1.5rem;
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.price {
    margin: 2rem 0;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
}

.amount-symbol {
    font-size: 1.5rem;
    font-weight: 800;
    vertical-align: super;
    margin-right: 4px;
    color: var(--primary);
}

.duration {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.monthly-note {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.8rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--primary);
    font-weight: bold;
}

/* Services */
.bg-dark-soft {
    background-color: #0d1421;
}

.service-item {
    text-align: center;
    padding: 2rem;
}

.service-item .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Form */
@media (max-width: 768px) {
    .contact.containerSection {
        padding-top: 10rem;
    }
}

.contact-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Animations */
/* Progressive Enhancement: Only hide content if JS is actually running */
body.js-loaded .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    will-change: transform, opacity;
}

body.js-loaded .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

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

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

/* Responsive */
@media (max-width: 968px) {
    h1 {
        font-size: 3rem;
    }

    .grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .pricing-card-container {
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--surface);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
        display: flex;
        /* Override display:none */
    }

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

    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* Website Types Section */
.type-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.type-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.type-tag {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.type-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.type-list {
    list-style: none;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.type-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
}

.type-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

.type-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.coming-soon-tag {
    position: relative;
    overflow: hidden;
}

.coming-soon-tag::after {
    content: "COMING SOON";
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent);
    color: var(--background);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
}

/* Comparison Table */
.comparison-container {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--glass);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.premium-notice {
    background: rgba(0, 168, 150, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-email {
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* FAQ Section */
.faq-categories {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 4rem;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.category-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: rgba(0, 168, 150, 0.3);
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
}

.icon-chevron {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.icon-chevron::before,
.icon-chevron::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.icon-chevron::before {
    left: 2px;
    transform: rotate(45deg);
}

.icon-chevron::after {
    right: 2px;
    transform: rotate(-45deg);
}

.active .icon-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: rgba(255, 255, 255, 0.02);
}

.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.accordion-content p {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .accordion-content p {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
}

/* Tech Stack Banner */
.tech-stack-banner {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    min-width: 100%;
    animation: scroll 40s linear infinite;
    will-change: transform;
}


@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 2rem));
    }
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tech-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Pause animation on hover */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .tech-stack-banner {
        padding: 2rem 0;
    }

    .marquee-content {
        animation-duration: 20s;
    }

    .tech-item {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Footer Redesign Styles */
.footer {
    padding: 6rem 0 3rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 320px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 150, 0.2);
}

.footer-nav h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.footer-nav h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-nav ul,
.footer-services ul {
    list-style: none;
}

.footer-nav li,
.footer-services li {
    margin-bottom: 1rem;
}

.footer-nav a,
.footer-services a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-services a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-contact strong {
    color: var(--text);
}

.footer-email-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.footer-email-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-meta {
    display: flex;
    gap: 2rem;
}

.footer-meta a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

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

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

@media (max-width: 600px) {
    .footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-meta {
        justify-content: center;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Projects Showcase */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem 0;
}

.project-card {
    position: relative;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: transform 0.1s ease-out, box-shadow 0.4s ease;
    /* 3D Tilt Setup */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}

.project-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-bottom: 1px solid var(--glass-border);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 2rem;
    /* Counteract 3D tilt for text readability if needed, or let it tilt too */
    transform: translateZ(20px);
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 168, 150, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 50px;
}

.project-card h3 {
    margin-bottom: 0.8rem;
    color: var(--white);
}

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

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

    .project-image-wrapper {
        height: 220px;
    }

    /* Fix hero overlap with logo/header */
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
        align-items: flex-start;
    }

    .hero-content {
        padding-top: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Founder / About Page Styles (Circular & Centered) --- */
.founder-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.founder-image .img-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 4px solid var(--accent, #D4AF37);
    margin: 0 auto;
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% 25%;
    /* Shift focus to the right where you are sitting */
    transition: transform 0.5s ease;
}

.founder-image:hover .founder-photo {
    transform: scale(1.05);
}

.founder-bio {
    max-width: 700px;
    margin: 0 auto;
}

.founder-bio .subtitle {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--accent, #D4AF37);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.founder-bio h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--white, #fff);
    font-family: 'Outfit', sans-serif;
}

.founder-bio .lead {
    font-size: 1.4rem;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.bio-text p {
    font-size: 1.1rem;
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .founder-image .img-wrapper {
        width: 200px;
        height: 200px;
    }

    .founder-bio h3 {
        font-size: 2.5rem;
    }
}


/* 1. Animated Mesh Gradient Background */
.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 100%);
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--accent);
    animation-delay: -5s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* 2. Animated Grid Lines */
.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

/* 3. Tech Accent Lines */
.tech-line {
    position: absolute;
    background: var(--accent);
    opacity: 0.5;
    box-shadow: 0 0 10px var(--accent);
}

.tech-line-v {
    width: 1px;
    height: 100vh;
    top: 0;
    left: 10%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    animation: scanDown 8s linear infinite;
}

.tech-line-h {
    height: 1px;
    width: 100vw;
    top: 20%;
    left: 0;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    animation: scanRight 12s linear infinite;
}

@keyframes scanDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes scanRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 4. Founder Image Spotlight Effect */
.founder-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2), transparent 70%);
    z-index: -1;
    filter: blur(20px);
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* 5. Cyberpunk Text Highlight */
.bio-text strong {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.bio-text strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.bio-text:hover strong::after {
    transform: scaleX(1);
    transform-origin: left;
}