/* ================= VARIABLES & RESET ================= */
:root {
    --bg-main: #0a0a0a; /* Deep dark background */
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    /* Modern Gradient Accent */
    --accent-gradient: linear-gradient(135deg, #6e8efb, #a777e3);
    --accent-solid: #8a2be2; 
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 100px 10%;
}

/* ================= UTILITIES ================= */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 20px -10px rgba(138, 43, 226, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(138, 43, 226, 0.7);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-solid);
    color: white;
    margin-left: 20px;
}

.btn-secondary:hover {
    background: var(--accent-solid);
    transform: translateY(-3px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6%; /* Pehle 20px tha, ab kam kar diya */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9); /* Thoda dark kiya taaki logo pop ho */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px; /* Height fix kar di taaki layout na hile */
}

.nav-logo {
    height: 105px; /* Logo ka size bada kiya */
    width: auto;
    object-fit: contain;
    /* Agar logo me extra space hai to usse trim karne ke liye: */
    display: block; 
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.3)); /* Thoda glow diya */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links a {
    margin-left: 40px;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-solid);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ================= HERO SECTION ================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    /* Background pattern optional */
    background-image: radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(110, 142, 251, 0.15) 0%, transparent 40%);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

/* ================= FEATURED PROJECT (ShoeOn Special) ================= */
.featured-project {
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 50px;
    display: flex;
    gap: 50px;
    align-items: center;
    border: 1px solid var(--glass-border);
    /* Glassmorphism effect */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.project-info {
    flex: 1;
}

.project-badge {
    display: inline-block;
    background: var(--accent-gradient);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.project-metrics {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.metric h4 {
    font-size: 1.8rem;
    color: var(--accent-solid);
}
.metric p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

.project-image {
    flex: 1.2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
    border: 1px solid var(--glass-border);
}

.project-image:hover {
     transform: perspective(1000px) rotateY(0deg);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* Thoda round corner */
    /* Niche wali line add karo glow ke liye */
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ================= SKILLS ================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-solid);
    box-shadow: 0 10px 20px -10px rgba(138, 43, 226, 0.3);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}
.fa-node-js, .fa-node { color: #68a063; }
.fa-react { color: #61dbfb; }
.fa-database { color: #4db33d; } /* MongoDBish */
.fa-js { color: #f0db4f; }
.fa-server {color: #a777e3;}


/* ================= CONTACT ================= */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contact-links {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.contact-btn {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 1.5rem;
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--accent-gradient);
    transform: scale(1.1);
    border-color: transparent;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

/* ================= MINI PROJECTS GRID ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.mini-project-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    /* Glassmorphism subtle touch */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mini-project-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent-solid);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Initially Hidden Projects */
.hidden-project {
    display: none; 
}

/* Card Content Styling */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.folder-icon {
    font-size: 40px;
    color: var(--accent-solid);
}

.card-links a {
    color: var(--text-secondary);
    font-size: 20px;
    margin-left: 15px;
    transition: 0.3s;
}

.card-links a:hover {
    color: white;
}

.mini-project-card h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.mini-project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes tags to bottom */
}

.card-tags {
    margin-top: auto;
}

.card-tags span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-right: 15px;
    font-family: monospace;
}

/* ================= GITHUB ACTIVITY ================= */
.activity-container {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto; /* Center karne ke liye */
    
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.graph-box img.main-graph {
    width: 100%;
    height: auto;
    filter: hue-rotate(240deg) contrast(1.2); /* Isse graph Purple/Blue ho jayega */
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Stats Row Styling */
.stats-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--accent-solid);
    margin-bottom: 10px;
    display: inline-block;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= ABOUT FOUNDER SECTION ================= */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    max-width: 1100px;
    margin: 0 auto;
    
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.founder-img-box {
    position: relative;
    flex-shrink: 0;
}

.founder-img {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    box-shadow: 20px 20px 0px rgba(138, 43, 226, 0.1); /* Stylized Shadow */
}

.exp-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-main);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid var(--accent-solid);
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.exp-badge span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-solid);
    display: block;
}

.founder-info h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.founder-role {
    font-size: 1.2rem;
    color: var(--accent-solid);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent-solid);
    transform: translateY(-3px);
}



/* Animation for revealing projects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ================= DESKTOP FIXES (Keeps Admin Panel Left) ================= */
@media (min-width: 1025px) {
    .reverse-layout {
        flex-direction: row-reverse;
    }
}

/* ================= TABLET FIXES ================= */
@media (max-width: 1024px) {
    section { padding: 80px 5%; }
    .hero-content h1 { font-size: 3rem; }
    .featured-project { flex-direction: column-reverse; }
    .project-image { transform: none; width: 100%; }
}

/* ================= FINAL MOBILE FIX (EMERGENCY) ================= */
@media (max-width: 768px) {
    
    /* 1. Global Section Spacing (Small gaps) */
    section {
        padding: 50px 20px !important; 
    }

    /* 2. Text Sizes Control */
    .hero-content h1 { font-size: 2.2rem !important; }
    .hero-content h3 { font-size: 1.2rem !important; }
    .section-title { font-size: 1.8rem !important; margin-bottom: 30px !important; }

    /* 3. Navbar Fixes */
    .navbar {
        padding: 10px 6px;
        height: 70px;
    }
    .nav-logo {
        height: 95px; 
    }
    .menu-toggle { display: block; color: white; }
    
    .nav-links {
        position: absolute;
        top: 60px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main); /* Solid Color */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.3s;
        border-right: 1px solid var(--glass-border);
    }
    .nav-links.active { left: 0; }
    .nav-links a { margin-left: 0; font-size: 1.2rem; }

    /* 4. PROJECT CARD REPAIR (Stack Layout) */
    .featured-project {
        flex-direction: column-reverse !important; /* Image Upar, Text Niche */
        padding: 25px !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    /* Force images to show and fit */
    .project-image {
        width: 100%;
        height: auto;
        margin: 0;
        transform: none !important; /* 3D Tilt hata diya */
    }
    
    .project-image img {
        width: 100%;
        border-radius: 10px;
    }

    .about-container {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    
    .founder-img {
        width: 100%;
        max-width: 250px;
        height: 250px;
    }
    
    .founder-info h3 {
        font-size: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    /* Reverse Layout Force Fix */
    .reverse-layout {
        flex-direction: column-reverse !important;
    }

    /* Project Text Sizes */
    .project-title { font-size: 1.5rem !important; margin-bottom: 10px; }
    .project-desc { font-size: 0.9rem !important; line-height: 1.5; }
    
    /* Metrics Grid */
    .project-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    .metric h4 { font-size: 1.3rem; }
    
    /* Stats Row (Github Activity) */
    .stats-row {
        flex-direction: column;
        gap: 20px;
    }
}