:root {
    --primary: #3b82f6;          /* Modern Blue */
    --secondary: #8b5cf6;        /* Modern Purple */
    --primary-glow: rgba(59, 130, 246, 0.3);
    
    --bg-base: #f8fafc;          /* Very light slate */
    --card-bg: rgba(255, 255, 255, 0.65);
    
    --text-main: #1e293b;        /* Dark slate for main text */
    --text-muted: #64748b;       /* Gray slate for muted */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Background Effects (Soft & Bright) */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #f1f5f9 0%, #f8fafc 100%);
    z-index: -3;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.blob-1, .blob-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: #e0f2fe; /* Light sky */
}

.blob-2 {
    bottom: -10%;
    left: 10%;
    width: 700px;
    height: 700px;
    background: #ede9fe; /* Light violet */
}

/* Navigation - White Glass */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--text-main);
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--nav-height);
}

.hero-content {
    flex: 1;
}

.badge {
    background: white;
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.main-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-main);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-visual img {
    max-width: 90%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
}

/* Clean Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

#services .grid-3 {
    margin-top: 0;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.glass-card p {
    color: var(--text-muted);
}

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

.section-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

/* Blog & Tech Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-date, .tag {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.tag {
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* About bio */
.bio-flex {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.bio-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal p {
    margin-top: 0.5rem;
    text-align: right;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.blob-1 {
    animation: pulse-slow 8s infinite alternate ease-in-out;
}
.blob-2 {
    animation: pulse-slow 10s infinite alternate-reverse ease-in-out;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays manually for grid */
.blog-grid > div:nth-child(1) { transition-delay: 0.1s; }
.blog-grid > div:nth-child(2) { transition-delay: 0.2s; }
.blog-grid > div:nth-child(3) { transition-delay: 0.3s; }
.blog-grid > div:nth-child(4) { transition-delay: 0.4s; }
.blog-grid > div:nth-child(5) { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-bottom: 100px;
    }
    
    .hero-visual {
        margin-top: 4rem;
        justify-content: center;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
        animation: fadeInDown 0.4s ease forwards;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1100;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
        background: var(--text-main);
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Hamburger Animation to X */
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}