/* 
   Theme: JD Code Friend - Developer Dark
   Colors: Dark Slate (Background), Cyan/Green/Purple (Accents)
   Font: Inter
*/

:root {
    /* Cyberpunk Color Scheme */
    --bg-dark: #0a0a0a;
    --bg-darker: #020202;
    --bg-card: #1a1a1a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #00f2ff;
    /* JD Cyan */
    --accent-secondary: #bc13fe;
    /* Purple */
    --accent-success: #4ade80;
    /* Green */
    --border-color: rgba(255, 255, 255, 0.1);

    /* Cyberpunk Font Stack */
    --font-heading: 'Orbitron', 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-stack: 'Inter', 'Space Grotesk', system-ui, -apple-system, sans-serif;

    --container-width: 1200px;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Typography - Modern Heading Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p,
li,
span {
    font-family: var(--font-body);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.small {
    font-size: 0.85rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links li a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links .btn.btn-primary {
    color: #fff;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
}

.nav-links .btn.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.5);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    padding-left: 2rem;
}

.dropdown-menu li a:hover::before {
    content: '→';
    position: absolute;
    left: 1rem;
    color: var(--accent-primary);
}

.dropdown-menu li:first-child a {
    border-radius: 12px 12px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 12px 12px;
}

.dropdown-menu li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

/* Mobile Menu Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 50%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    transition: transform 0.3s ease-out;
    pointer-events: none;
}

.hero::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent);
    top: -10%;
    right: -5%;
}

.hero::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.3), transparent);
    bottom: 10%;
    left: -5%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.capsule {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* Code Window Visual */
.code-window {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: 'Fira Code', monospace;
    position: relative;
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.code-title {
    margin-left: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-window pre {
    padding: 20px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-x: auto;
    margin: 0;
}

.keyword {
    color: #c084fc;
}

/* purple */
.class {
    color: #facc15;
}

/* yellow */
.string {
    color: #4ade80;
}

/* green */
.comment {
    color: #64748b;
}

/* gray */
.function {
    color: #60a5fa;
}

/* blue */

/* Sections */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

.two-col {
    grid-template-columns: 1fr 1fr;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.four-col {
    grid-template-columns: repeat(4, 1fr);
}

/* Feature Cards */
.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.2);
    transform: translateY(-4px);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Feature Grid (Smaller items) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.steps-list {
    margin-top: 2rem;
}

.steps-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-num {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.steps-list h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.steps-list p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Tags */
.tags-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tag {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Box Items */
.box-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    border: 1px dashed var(--border-color);
    transition: all 0.3s;
}

.box-item:hover {
    border-color: var(--accent-primary);
    border-style: solid;
}

/* Hide default cursor for custom cursor effect */
body * {
    cursor: none !important;
}

/* Floating animation for key elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-visual,

/* Smooth parallax preparation */
.card,
.feature-card-enhanced,
.compatibility-card,
.why-card,
.glass-card,
.feature-icon-enhanced,
.timeline-icon,
.compatibility-icon,
.why-icon {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Compatibility Cards */
.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.compatibility-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.compatibility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.compatibility-card:hover::before {
    opacity: 1;
}

.compatibility-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.25);
}

.compatibility-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.compatibility-card:hover .compatibility-icon {
    transform: scale(1.1) rotate(5deg);
}

.compatibility-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.compatibility-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Why JD Code Friend Section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.why-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.why-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.why-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.why-card:hover .why-icon {
    transform: scale(1.1);
}

.why-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Timeline - Glassmorphism Design */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 3rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(56, 189, 248, 0.5),
            rgba(129, 140, 248, 0.5),
            rgba(167, 139, 250, 0.5),
            rgba(74, 222, 128, 0.5),
            rgba(251, 146, 60, 0.5));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-reverse {
    direction: rtl;
}

.timeline-reverse .timeline-card {
    direction: ltr;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 2;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(56, 189, 248, 0.15);
}

.step-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.glass-card:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
}

.timeline-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Feature Cards */
.features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-enhanced {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(129, 140, 248, 0.3), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.feature-card-enhanced:hover::before {
    opacity: 1;
}

.feature-card-enhanced:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(56, 189, 248, 0.2);
}

.feature-icon-enhanced {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon-enhanced::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: inherit;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.feature-card-enhanced:hover .feature-icon-enhanced::after {
    opacity: 0.6;
}

.feature-card-enhanced:hover .feature-icon-enhanced {
    transform: scale(1.15) rotate(-5deg);
}

.feature-card-enhanced h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.feature-card-enhanced p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Testimonials */
.testimonial {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    font-style: italic;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
    transform: translateY(-4px);
}

.testimonial::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -15px;
    left: 15px;
    opacity: 0.15;
    font-family: serif;
    color: var(--accent-primary);
    line-height: 1;
}

.testimonial p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial .author {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-align: right;
}

/* CTA Section */
.section-cta {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.cta-box {
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 70%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 0.5rem;
}

.cta-buttons {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 4rem 0 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-muted);
}

.social-icon:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    color: var(--accent-primary);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.link-highlight {
    color: var(--accent-primary) !important;
    font-weight: 500;
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding: 2rem 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animation Classes (added by JS) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design - Optimized for All Devices */

/* Mobile (600px and below) */
@media (max-width: 600px) {
    .features-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .three-col,
    .four-col,
    .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet and below (968px) */
@media (max-width: 968px) {

    .hero-content,
    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-features {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        padding-left: 0;
        padding-right: 0;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        padding-left: 4.5rem;
        /* More breathing room from line */
        gap: 1rem;
        margin-bottom: 3rem;
        width: 100%;
        align-items: flex-start;
        /* Left align content */
    }

    .timeline-reverse {
        direction: ltr;
        /* Force LTR on mobile for all items */
    }

    /* Straight vertical line on the left */
    .timeline-line {
        left: 1.5rem;
        transform: none;
        width: 3px;
        /* Slightly thicker for visibility */
        height: 100%;
    }

    /* Align dots to the top of the card for better step tracking */
    .timeline-dot {
        left: 1.5rem;
        top: 3rem;
        /* Align with card header area */
        transform: translateX(-50%);
        width: 24px;
        height: 24px;
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
        /* Enhanced glow */
    }

    /* Ensure cards take full width */
    .timeline-card {
        width: 100%;
    }

    .features-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }

    .three-col,
    .four-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .lead {
        margin: 0 auto 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(15, 23, 42, 0.8);
        margin-top: 0.5rem;
        margin-left: 1rem;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem;
    }

    .footer-col {
        text-align: center !important;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-visual {
        transform: none !important;
    }
}

/* Tablet landscape (769px - 968px) */
@media (min-width: 769px) and (max-width: 968px) {
    .container {
        max-width: 90%;
    }
}

/* Mobile Large (577px - 768px) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .hero::before {
        width: 400px;
        height: 400px;
    }

    .hero::after {
        width: 300px;
        height: 300px;
    }

    .three-col,
    .four-col {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    :root {
        --nav-height: 60px;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .lead {
        font-size: 0.95rem;
    }

    .capsule {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .hero-badges {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .hero-badges span {
        font-size: 0.75rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .grid {
        gap: 1.5rem;
    }

    /* Logo sizes for mobile */
    .logo img {
        height: 35px !important;
    }

    .footer-col img {
        height: 45px !important;
    }

    /* Code window adjustments */
    .code-window {
        font-size: 0.8rem;
    }

    .code-window pre {
        padding: 15px;
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        padding: 2rem 20px !important;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Extra small mobile (below 400px) */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .logo img {
        height: 30px !important;
    }

    .footer-col img {
        height: 40px !important;
    }

    .card .icon {
        font-size: 2rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }
}

/* Ultra-wide Desktop (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.phone-input-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    width: 100%;
}

.phone-input-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.submit-btn .btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--accent-success);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.6);
}

.scroll-to-top svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .form-row:has(.form-group:nth-child(2)) {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .phone-input-group {
        grid-template-columns: 120px 1fr;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .footer-col {
        text-align: center !important;
    }

    .footer-col a {
        display: block;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        margin-bottom: 1rem;
    }

    .phone-input-group {
        grid-template-columns: 100px 1fr;
        gap: 0.5rem;
    }

    .phone-input-group select {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .contact-form {
        padding: 2.25rem;
    }
}

@media (min-width: 1025px) {
    .contact-form {
        padding: 2.5rem;
    }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Bottom Navigation */
.mobile-nav-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    padding: 0.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-bottom .nav-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 0;
}

.mobile-nav-bottom .nav-links li {
    flex: 1;
    text-align: center;
}

.mobile-nav-bottom .nav-links li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.7rem;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-nav-bottom .nav-links li a::before {
    content: '';
    font-size: 1.2rem;
    display: block;
}

.mobile-nav-bottom .nav-links li:nth-child(1) a::before {
    content: '??';
}

.mobile-nav-bottom .nav-links li:nth-child(2) a::before {
    content: '??';
}

.mobile-nav-bottom .nav-links li:nth-child(3) a::before {
    content: '?';
}

.mobile-nav-bottom .nav-links li:nth-child(4) a::before {
    content: '??';
}

.mobile-nav-bottom .nav-links li a:hover,
.mobile-nav-bottom .nav-links li a:active {
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    border-radius: 8px;
}

/* Hamburger Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {

    /* Show mobile bottom nav */
    .mobile-nav-bottom {
        display: none;
    }

    /* Mobile Navigation Menu */
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .navbar .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .navbar .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .navbar .nav-links li a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Adjust body padding for bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Navigation adjustments */
    .navbar {
        height: 60px;
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 35px !important;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: calc(100vh - 60px);
        padding: 2rem 1rem;
        margin-top: 60px;
    }

    .hero-content {
        padding: 1.5rem 0;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin: 1rem 0;
    }

    .hero .gradient-text {
        font-size: 2rem !important;
    }

    .hero p.lead {
        font-size: 1rem;
        margin: 1rem 0;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Section spacing */
    section {
        padding: 3rem 0;
    }

    /* Section titles */
    section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }

    section .subtitle,
    section .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Why Section */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-content h2 {
        font-size: 1.75rem !important;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    /* Timeline (How It Works) */
    .timeline-container {
        padding: 1rem 0;
    }

    .timeline-item {
        margin-bottom: 2rem;
        padding-left: 0;
    }

    .timeline-item.timeline-reverse {
        padding-right: 0;
        padding-left: 0;
    }

    .timeline-card {
        padding: 1.25rem;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-card h3 {
        font-size: 1.1rem;
    }

    .timeline-card p {
        font-size: 0.9rem;
    }

    .timeline-dot {
        width: 30px;
        height: 30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .step-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* CTA Section */
    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.5rem !important;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Cards and Glass Effects */
    .glass-card {
        padding: 1.25rem;
    }

    /* Buttons */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Dropdown Menu Mobile */
    .dropdown-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
    }

    /* Hide desktop CTA button in nav */
    .navbar .btn-primary {
        display: none;
    }

    /* Particles - reduce on mobile */
    #particles-js {
        opacity: 0.3;
    }
}

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem !important;
    }

    .hero .gradient-text {
        font-size: 1.75rem !important;
    }

    section h2 {
        font-size: 1.5rem !important;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .cta-box {
        padding: 1.5rem 1rem;
    }

    .mobile-nav-bottom .nav-links li a {
        font-size: 0.65rem;
        padding: 0.4rem 0.2rem;
    }

    .mobile-nav-bottom .nav-links li a::before {
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .mobile-nav-bottom {
        padding: 0.25rem 0;
    }

    .mobile-nav-bottom .nav-links li a {
        padding: 0.35rem 0.2rem;
        font-size: 0.65rem;
    }
}