:root {
    --bg-dark: #0f1115;
    --bg-darker: #08090b;
    --primary: #3b82f6;
    /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.07);
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    min-height: 1.2em;
    /* Prevent layout shift during typing */
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary);
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

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

p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

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

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

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: var(--card-hover);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.1s ease-out, border-color 0.3s;
    /* Faster transition for tilt */
    transform-style: preserve-3d;
}

.card:hover {
    border-color: var(--primary);
    /* Transform handled by JS for tilt */
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transform: translateZ(20px);
    /* Pop out effect */
}

.glass h3,
.glass p {
    transform: translateZ(10px);
    /* Subtle pop out */
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text-muted);
}

/* Contact */
.contact-container {
    text-align: center;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-item {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--primary);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    width: 0%;
    z-index: 1001;
    transition: width 0.1s;
}

/* Testimonials */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    position: relative;
    padding-left: 40px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 15px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    color: #e5e7eb;
}

.author h4 {
    color: var(--primary);
    margin-bottom: 2px;
}

.author span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Mobile Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.line {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

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

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(8, 9, 11, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

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

    .nav-links li {
        margin: 20px 0;
    }

    /* Hamburger Animation */
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .timeline::before {
        left: 0;
    }
}