/* --- Variables & Reset --- */
:root {
    --primary-red: #ff0033;
    --primary-purple: #9900ff;
    --dark-bg: #050505;
    --card-bg: #111111;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --gradient-main: linear-gradient(135deg, var(--primary-red), var(--primary-purple));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navigation --- */
.navbar {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.logo-img { height: 40px; }
.highlight { color: var(--primary-red); }

.nav-menu { display: flex; gap: 30px; }
.nav-link { color: var(--text-white); transition: 0.3s; font-weight: 500; }
.nav-link:hover { color: var(--primary-red); }
.nav-link.btn-primary {
    background: var(--gradient-main);
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.4);
}

.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; background: white; margin: 5px auto; transition: 0.3s; }

/* --- Hero Section with GRADIENT GLOW --- */
/* REPLACED THE MATRIX GRID WITH THIS GRADIENT */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Creates a subtle purple/red glow in the center */
    background: radial-gradient(circle at center, rgba(153, 0, 255, 0.15) 0%, rgba(255, 0, 51, 0.1) 40%, #050505 80%);
    z-index: -1;
}

.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-gray); max-width: 700px; margin: 0 auto 30px; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 30px; border-radius: 50px; font-weight: 600; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px;}
.btn-gradient { background: var(--gradient-main); border: none; color: white; }
.btn-gradient:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(153, 0, 255, 0.3); }
.btn-outline { border: 2px solid rgba(255,255,255,0.2); background: transparent; }
.btn-outline:hover { border-color: var(--primary-red); color: var(--primary-red); }

/* --- About & Stats --- */
.about-section { padding: 80px 0; background: #080808; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.feature-list i { font-size: 1.5rem; color: var(--primary-purple); margin-top: 5px; min-width: 30px; }
.feature-content strong { display: block; font-size: 1.1rem; color: var(--primary-red); margin-bottom: 5px; }
.feature-content p { color: var(--text-gray); margin: 0; }

.about-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-box { 
    background: var(--card-bg); 
    padding: 25px; 
    border-radius: 10px; 
    border-left: 5px solid var(--primary-red);
    display: flex; 
    align-items: center; 
    gap: 20px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Slight shadow for depth */
}
.stat-number { font-size: 2.5rem; font-weight: 700; color: white; }
.stat-label { color: var(--text-gray); }

/* --- Courses --- */
.courses-section { padding: 80px 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-gray); margin-bottom: 50px; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.course-card {
    background: var(--card-bg);
    padding: 30px; border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); border-color: var(--primary-purple); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card-icon { font-size: 2rem; color: var(--primary-red); margin-bottom: 20px; }
.course-card p { flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.tags li { background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; }
.btn-text { color: var(--primary-red); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: 0.3s;}
.btn-text:hover { gap: 10px; }

/* --- Tools Section --- */
.tools-section { padding: 80px 0; background: #080808; text-align: center; }
.tools-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 50px; }
.tool-item {
    width: 150px; height: 80px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-weight: 700; color: white;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.tool-item:hover { background: white; color: black; box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.work-showcase { margin-top: 50px; }
.gallery-placeholder {
    width: 100%; height: 200px;
    background: rgba(255,255,255,0.02);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-gray);
    margin-top: 20px;
}

/* --- Contact & Map --- */
.contact-section { padding: 80px 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; align-items: center;}
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item i { font-size: 1.5rem; color: var(--primary-red); background: rgba(255, 0, 51, 0.1); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.info-item h4 { font-size: 1.1rem; margin-bottom: 5px; }
.info-item p { color: var(--text-gray); font-size: 0.9rem; }
.map-container { border-radius: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); height: 400px; }
.map-container iframe { height: 100%; }

/* --- Footer --- */
.footer { background: black; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-brand h3 { margin-bottom: 10px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-links a:hover { background: var(--primary-red); transform: translateY(-3px); }
.footer-bottom { margin-top: 30px; font-size: 0.8rem; color: #666; }

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: block; z-index: 1001; }
    .nav-menu { position: fixed; left: -100%; top: 0; flex-direction: column; background: var(--dark-bg); width: 100%; height: 100vh; justify-content: center; transition: 0.3s; text-align: center; }
    .nav-menu.active { left: 0; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .courses-grid { grid-template-columns: 1fr; }
}
/* --- Gallery Styling (Add this to the bottom of styles.css) --- */

.gallery-placeholder {
    display: grid;
    /* This creates a grid that auto-fits images. If screen is small, they stack. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    margin-top: 30px;
    
    /* Resets any old placeholder styles */
    height: auto !important;
    background: transparent !important;
    border: none !important; 
}

.gallery-img {
    width: 100%;       /* Forces image to fit the column width */
    height: 200px;     /* Forces all images to be the same height */
    object-fit: cover; /* Crops the image neatly so it doesn't stretch/squish */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    border-color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(255, 0, 51, 0.3);
}