/* --- Global Variables --- */
:root {
    --primary-red: #ff004f;  /* Neon Red */
    --dark-bg: #0b0b0b;      /* Deep Black */
    --card-bg: #1f1f1f;      /* Dark Gray */
    --text-white: #ffffff;
    --text-grey: #ababab;
    --transition: all 0.4s ease;
}

* {
    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);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(11, 11, 11, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.dot { color: var(--primary-red); }

.nav-links { display: flex; gap: 30px; }

.nav-links a {
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-red); }

/* --- Burger Menu --- */
.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px; height: 3px;
    background-color: var(--text-white);
    margin: 5px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Dark gradient overlay */
    background: radial-gradient(circle, rgba(20,20,20,1) 0%, rgba(0,0,0,1) 100%);
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.highlight { color: var(--primary-red); }

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.cursor {
    color: var(--primary-red);
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-content p {
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    background: var(--primary-red);
    color: var(--text-white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-red);
    margin: 0 10px;
}

.btn:hover {
    background: transparent;
    color: var(--primary-red);
    box-shadow: 0 0 15px var(--primary-red);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--dark-bg);
    border-color: var(--text-white);
    box-shadow: none;
}

/* --- Global Section Styles --- */
.section-padding { padding: 80px 8%; }
.bg-dark { background-color: #0f0f0f; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-grey);
    margin-top: -50px;
    margin-bottom: 50px;
}

/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-img { flex: 1; text-align: center; }
.about-img img {
    width: 80%;
    border-radius: 20px;
    border: 3px solid var(--primary-red);
    box-shadow: 0 0 30px rgba(255, 0, 79, 0.2);
}

.about-text { flex: 1.2; }
.about-text h4 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary-red); }
.about-text p { color: var(--text-grey); margin-bottom: 15px; line-height: 1.7; }

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}
.stat h5 { font-size: 2rem; color: var(--text-white); }
.stat p { color: var(--text-grey); font-size: 0.9rem; }

/* --- Skills --- */
.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    padding: 25px 35px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: var(--transition);
    cursor: default;
}

.skill-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 79, 0.15);
}

.skill-card i { font-size: 2.5rem; color: var(--primary-red); margin-bottom: 15px; }

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: scale(1.02);
}

.card-img {
    height: 200px;
    overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover img { transform: scale(1.1); }

.project-info { padding: 25px; }
.project-info h3 { margin-bottom: 10px; }
.project-info p { color: var(--text-grey); margin-bottom: 20px; font-size: 0.9rem; }
.project-info a { color: var(--primary-red); font-weight: 600; }
.project-info a:hover { text-decoration: underline; }

/* --- Partners Grid --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.partner-item {
    background: #151515;
    padding: 30px 10px;
    border-radius: 8px;
    color: #666;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.partner-item i { font-size: 2rem; margin-bottom: 5px; }
.partner-item span { font-size: 0.9rem; font-weight: 600; }

.partner-item:hover {
    color: var(--text-white);
    background: #222;
    transform: translateY(-5px);
}
.partner-item:hover i { color: var(--primary-red); }

/* --- Footer --- */
footer {
    background: #050505;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px; height: 45px;
    background: #222;
    color: var(--text-white);
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

footer p { margin-top: 20px; color: #555; font-size: 0.8rem; }

/* --- Animations (Scroll Reveal) --- */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: #111;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links li { margin: 25px 0; }
    
    .burger { display: block; z-index: 2000; }
    
    .nav-active { transform: translateX(0%); }

    /* Burger Animation to X */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h3 { font-size: 1.5rem; }
    
    .about-container { flex-direction: column; }
    .about-img img { width: 100%; }
}