@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f7f6;
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    min-height: 8vh;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.logo span { color: #007bff; }

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    gap: 30px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { 
    color: #007bff; 
}

.nav-actions {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.user-icon {
    font-size: 1.8rem;
    color: #333;
    transition: 0.3s;
    text-decoration: none;
}

.user-icon:hover {
    color: #007bff;
    transform: scale(1.1);
}

/* --- Burger (Desktop pe hide rahega) --- */
.burger {
    display: none; 
    cursor: pointer;
    margin-left: 20px;
}

.line1, .line2, .line3 {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 123, 255, 0.2);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content h1 span {
    background: linear-gradient(to right, #007bff, #00ff88);
    background-clip: text; /* Standard property */
    -webkit-background-clip: text; /* For Safari/Chrome */
    -webkit-text-fill-color: transparent;
}

.hero-btns {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-main, .btn-secondary {
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-main { background: #007bff; border: none; color: white; }
.btn-main:hover { background: #0056b3; }

.btn-secondary { background: transparent; border: 2px solid #007bff; color: white; }
.btn-secondary:hover { background: #007bff; }

/* --- Stats Section --- */
.stats-section {
    padding: 80px 10%;
    background: #090a0f;
}

.container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: #007bff;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.card-icon { font-size: 3rem; color: #007bff; margin-bottom: 15px; }

.card-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #00ff88;
}

.stat-card h2 { font-size: 2.5rem; margin: 10px 0; }
.stat-card p { color: #ccc; font-size: 1.1rem; }

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* --- Projects Section --- */
.projects-section {
    padding: 100px 10%;
    background: #090a0f;
    color: white;
}

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; }
.section-title span { color: #007bff; }

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 120px;
}

.project-item.reverse { 
    flex-direction: row; 
}

.project-img {
    flex: 1;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.project-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: scale 0.5s ease;
}

.project-img:hover img { scale: 1.1; }

.project-info { flex: 1; }
.project-info h3 { font-size: 2rem; color: #00ff88; margin-bottom: 20px; }
.project-info p { font-size: 1.1rem; color: #ccc; line-height: 1.8; margin-bottom: 30px; }

/* --- Footer --- */
.main-footer {
    background: #0d1117;
    padding: 60px 10% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand, .footer-links, .footer-contact { flex: 1; min-width: 250px; }
.footer-brand p { color: #ccc; margin: 20px 0; line-height: 1.6; }

.social-links a {
    color: #007bff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: 0.3s;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #00ff88; padding-left: 5px; }

.footer-contact h4 { margin-bottom: 25px; color: #007bff; }
.footer-contact p { margin-bottom: 15px; color: #ccc; }
.footer-contact i { color: #00ff88; margin-right: 10px; }

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #666;
}

/* --- Mobile Responsive (768px) --- */
@media (max-width: 768px) {
    .burger {
        display: block; /* PC pe hidden, Mobile pe visible */
        z-index: 1100;
    }

    .nav-links {
        display: flex;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        z-index: 1000;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .project-item,
     .project-item.reverse {
       flex-direction: column-reverse; /* Mobile pe palatne ki zarurat nahi, sab vertical */
        text-align: center;
        gap: 30px;
    }
    .project-item.reverse {
        flex-direction: column-reverse; 
    }

    .project-img { width: 100%; }
}

/* --- X-Animation for Burger --- */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }