/* ==========================================
   EXTREME LEVEL CSS - Dark Glassmorphism 
   (Optimized for Windows & Mobile)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    /* Neon Accents */
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    
    --font-family: 'Space Grotesk', sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    /* Prevents content from hiding behind the sticky nav on jump links */
    scroll-padding-top: 100px; 
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- Custom Scrollbar for Windows --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* --- Animated Background Orbs --- */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate linear;
    pointer-events: none; /* Prevents bugs on touch devices */
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

/* --- Typography Utilities --- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.accent-text { color: var(--accent-secondary); }
.mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.text-sm { font-size: 0.875rem; }
.opacity-70 { opacity: 0.7; }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-padding {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem); /* Responsive title size */
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* --- Glass Elements --- */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- Extreme Transparent Navbar --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 10px 24px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo .dot {
    color: var(--accent-secondary);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

nav ul li a:hover::after { width: 100%; }

nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px; 
}

.hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    transform: translateY(0);
    animation: fadeInUp 1s ease-out;
}

#hero h1 {
    font-size: clamp(3rem, 8vw, 5rem); /* Scales beautifully on phones */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

#hero h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 30px;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    text-decoration: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid var(--accent-secondary);
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    width: fit-content;
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

/* --- Skills Grid --- */
.skills-grid {
    display: grid;
    /* Fixed for mobile bounds */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 25px;
}

.skill-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-highlight);
    background: rgba(255, 255, 255, 0.06);
}

.skill-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Projects Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Prevent horizontal overflow */
    gap: 30px;
}

.project-card {
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 0 1px var(--accent-primary);
}

.project-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.project-card ul {
    list-style: none;
    padding-left: 0;
}

.project-card ul li {
    margin-bottom: 12px;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.project-card ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* --- Experience Timeline --- */
.timeline {
    position: relative;
    padding-left: 40px; /* Secure padding for the dot */
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px; /* Center line inside padding */
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    transition: var(--transition);
    width: 100%;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-secondary);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    left: -39px; /* Align perfectly over the line */
    top: 25px;
    box-shadow: 0 0 15px var(--accent-primary);
    z-index: 2;
}

.timeline-content h4 {
    font-size: 1.4rem;
    color: #fff;
}

/* --- Education & Tags --- */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Fix mobile overflow */
    gap: 40px;
}

.education-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-list li {
    position: relative;
    padding: 25px; /* Consistent padding */
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.border-accent {
    border-color: rgba(139, 92, 246, 0.3);
}

/* --- Footer --- */
.glass-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   MOBILE RESPONSIVENESS (< 768px)
   ========================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        gap: 12px 20px;
    }
    
    html {
        scroll-padding-top: 160px; /* Offset for taller stacked navbar */
    }

    #hero {
        padding-top: 160px; /* Prevent header overlapping hero on mobile */
    }

    .section-padding {
        padding: 60px 0; /* Less whitespace on small screens */
    }

    .glass-panel, .glass-card {
        padding: 20px; /* Slightly tighter internal padding */
    }
    
    .status-badge {
        position: relative;
        display: inline-block;
        top: 0;
        right: 0;
        margin-top: 10px;
    }
    
    /* Ensure the timeline respects borders on small phones */
    .timeline { 
        padding-left: 30px; 
    }
    .timeline::before { 
        left: 5px; 
    }
    .timeline-dot { 
        left: -34px; 
        width: 16px;
        height: 16px;
        top: 25px;
    }
}