:root {
    --red: #D21F3C;
    --black: #0a0a0a;
    --dark-grey: #1a1a1a;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--black); color: var(--white); font-family: 'Segoe UI', sans-serif; line-height: 1.6; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 7%; background: rgba(0,0,0,0.95);
    position: fixed; width: 100%; z-index: 1000; border-bottom: 1px solid #333;
}
.logo { font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.logo span { color: var(--red); }
.nav-links { display: flex; list-style: none; }
.nav-links li a { color: var(--white); text-decoration: none; margin-left: 30px; font-weight: 600; font-size: 14px; text-transform: uppercase; transition: 0.3s; }
.nav-links li a:hover { color: var(--red); }
.menu-btn { display: none; font-size: 24px; cursor: pointer; }

/* Hero */
.hero {
    height: 100vh; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1350') no-repeat center center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero h1 { font-size: 4rem; font-weight: 900; }
.hero h1 span { color: var(--red); }
.main-btn { background: var(--red); color: white; padding: 15px 40px; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block; margin-top: 20px; transition: 0.3s; }
.main-btn:hover { transform: scale(1.05); background: #b01a32; }

/* Layout Grid */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.section-title.left { text-align: left; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Cards */
.card { background: var(--dark-grey); padding: 40px; border-radius: 10px; border: 1px solid #333; text-align: center; transition: 0.3s; }
.card:hover { border-color: var(--red); transform: translateY(-10px); }
.card i { font-size: 40px; color: var(--red); margin-bottom: 20px; }

/* Coding & Images */
.coding-flex { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.coding-text, .coding-img { flex: 1; min-width: 300px; }
.coding-img img { width: 100%; border-radius: 10px; filter: grayscale(50%); transition: 0.5s; }
.coding-img img:hover { filter: grayscale(0%); }

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .menu-btn { display: block; }
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--black); flex-direction: column; text-align: center; padding: 20px 0;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .hero h1 { font-size: 2.5rem; }
}