/* --- 1. VARIABLES & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --primary: #00f2ff;   /* Neon Cyan */
    --secondary: #bd00ff; /* Neon Purple */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --font: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font); }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. NAVIGATION (GLASSMORPHISM) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-shadow: 0 0 10px rgba(0,242,255,0.5); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- 3. COMMON LAYOUTS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 120px 20px 60px 20px; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; text-align: center; }
.section-title span { color: var(--secondary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(189, 0, 255, 0.5); }

/* --- 4. PAGE SPECIFIC --- */

.hero-container {margin: 0 auto; padding: 120px 20px 60px 20px; }

/* 1. Set the Stage */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #050505;
    /* This adds the 3D depth perspective to the whole container */
    perspective: 1000px; 
}

/* 2. Layering: Ensure text is above the grid */
.hero-content {
    position: relative;
    z-index: 2; /* Text sits on top */
    pointer-events: none; /* Lets clicks pass through to buttons inside if needed */
}
.hero-content a {
    pointer-events: auto; /* Re-enable clicking for buttons */
}

/* 3. The Smoother Grid */
.hero-grid {
    position: absolute;
    width: 200%;       /* Make it wider than screen to hide edges */
    height: 200%;      /* Make it taller to stretch into distance */
    top: -50%;         /* Center it */
    left: -50%;        /* Center it */
    z-index: 1;
    
    /* The Grid Lines */
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.3) 1px, transparent 1px), /* Horizontal lines */
        linear-gradient(90deg, rgba(189, 0, 255, 0.3) 1px, transparent 1px); /* Vertical lines */
    
    /* CRITICAL: The size of one grid square */
    background-size: 80px 80px; 
    
    /* The 3D Tilt */
    transform: rotateX(50deg); 
    
    /* The Fade Out (Horizon effect) */
    mask-image: linear-gradient(to bottom, transparent 10%, black 90%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 90%);

    /* The Animation */
    animation: gridFlow 2s linear infinite;
}

/* 4. The Animation Logic */
@keyframes gridFlow {
    0% {
        /* Start position */
        background-position: 0 0;
    }
    100% {
        /* Move exactly the size of one square (80px) */
        background-position: 0 80px; 
    }
}
.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    color: transparent;
}
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 30px; }

/* Blog Grid */

/* Add this to style.css */
.blog-img {
    width: 100%;
    height: 180px;       /* Fixed height for uniformity */
    object-fit: cover;   /* Smart crop: prevents image stretching */
    border-radius: 8px;  /* Rounded corners */
    margin-bottom: 15px; /* Spacing below image */
    display: block;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--bg-card);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.3s;
}
.card:hover { border-color: var(--primary); transform: translateY(-5px); }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }

/* Contact Form */
.contact-wrapper { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
input, textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 5px;
    outline: none;
}
input:focus, textarea:focus { border-color: var(--primary); }

/* About Page */
.about-content { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1; }
.about-img {
    flex: 1;
    height: 300px;
    background: linear-gradient(45deg, var(--bg-card), var(--border));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 3rem;
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the area without squishing */
    border-radius: 12px; /* Matches the rounded corners of the box */
    display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: 70px; right: 0; width: 100%;
        background: var(--bg-card); flex-direction: column;
        align-items: center; padding: 20px; display: none;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 3rem; }
    .about-content { flex-direction: column; }
}

/* --- NEW SECTIONS CSS --- */

/* Portfolio/Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.work-item {
    height: 250px;
    background: #222;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.work-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    display: flex; align-items: center; justify-content: center;
    color: #444; font-weight: bold;
}
.work-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the area without squishing */
    border-radius: 12px; /* Matches the rounded corners of the box */
    display: block;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.05), rgba(189, 0, 255, 0.05));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 20px;
    margin-top: 80px;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-number { font-size: 3rem; font-weight: 900; color: #fff; }
.stat-label { color: var(--primary); letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }

/* Pricing Cards */
.pricing-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
    position: relative;
}
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.featured { border: 1px solid var(--secondary); box-shadow: 0 0 30px rgba(189,0,255,0.1); }
.price { font-size: 3rem; font-weight: bold; margin: 20px 0; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.features-list li { margin: 15px 0; color: var(--text-muted); }

/* Footer */
footer {
    background: #020202;
    border-top: 1px solid var(--border);
    padding: 80px 20px 20px;
    margin-top: 100px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 60px;
}
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--primary); }
.copyright {
    text-align: center;
    color: #444;
    padding-top: 20px;
    border-top: 1px solid #111;
}