/* 
   PREMIUM DESIGN SYSTEM
   Theme: Nebula Glass (Dark Focused)
*/

:root {
    /* Premium Solid Luxury Gold Palette V2 */
    --bg-dark: #000000; /* Pure Black for high contrast */
    --bg-alt: #0a0a0a; /* Deep matte black */
    --zinc-900: #111111; /* Card backgrounds */
    --zinc-800: #1a1a1a; /* Elevated surfaces */
    --text-primary: #fdfdfd;
    --text-secondary: #a0a0a0;
    --accent-primary: #d4af37; /* Luxury Gold */
    --accent-secondary: #b8860b; /* Dark Goldenrod */
    --accent-gradient: linear-gradient(135deg, #e6c55c 0%, #b8860b 100%);
    --glass-bg: #0d0d0d; /* Solid dark card, NOT transparent */
    --glass-border: #222222; /* Very thin crisp border */
    --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --glow-color: rgba(212, 175, 55, 0.3); /* Stronger glow on hover */
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Loading Overlay (Cinematic Intro) */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #09090b;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0.05, 0.36, 1), visibility 0.8s;
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-terminal {
    width: 300px;
    font-family: 'Courier New', monospace;
}

.loader-text {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-align: center;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    font-weight: 700;
}

.loader-bar {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-alt: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

h1, .logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: none;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.alt-bg {
    background-color: var(--bg-alt);
}



/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#main-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

@media (max-width: 768px) {
    #main-nav.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 15, 0.95);
    }
}

#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

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

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

.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero Section & Background */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* Cinematic Background */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.08;
    animation: move 20s infinite alternate;
}

@media (max-width: 768px) {
    .blob {
        filter: blur(40px);
        opacity: 0.05;
    }
}

.blob-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
}

.blob-2 {
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    opacity: 0.1;
    animation-duration: 30s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Grain Texture Overlay */
.bg-canvas::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

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

.hero-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
    font-weight: 600;
}

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

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

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

/* Hero Image Wrapper */

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glass-border);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent-primary), 0 0 20px var(--glow-color);
}

.image-wrapper img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    filter: contrast(1.05) saturate(1.1);
}


.glass-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.decor-1 {
    width: 150px;
    height: 150px;
    top: -30px;
    right: -30px;
}

.decor-2 {
    width: 120px;
    height: 120px;
    bottom: -20px;
    left: -40px;
    animation-delay: 2s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 20px); }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* Bento Grid (Premium Layout) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 20px;
    margin-top: 40px;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.bento-item > * {
    position: relative;
    z-index: 1;
}

.bento-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--glow-color);
}

.bento-item:hover::before {
    opacity: 1;
}

.about-text-box { grid-column: span 8; grid-row: span 3; }
.about-info-box { grid-column: span 4; grid-row: span 3; }
.edu-box-1 { grid-column: span 6; grid-row: span 2; }
.edu-box-2 { grid-column: span 6; grid-row: span 2; }

.github-stats-box { grid-column: span 4; grid-row: span 2; background: rgba(36, 41, 47, 0.15); }

.github-stats {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.stats-card, .langs-card {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.1));
    transition: var(--transition);
}

.stats-card:hover, .langs-card:hover {
    transform: scale(1.02);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-label { color: var(--text-secondary); font-size: 0.9rem; }
.stat-value { color: var(--accent-primary); font-weight: 600; }

.github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #24292f;
    color: white;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.github-btn:hover {
    background: #333;
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .about-text-box, .about-info-box, .edu-box-1, .edu-box-2, .github-stats-box {
        grid-column: span 12;
    }
}

/* About Text Style */
.about-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-info ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-info ul li strong {
    color: var(--accent-primary);
    width: 120px;
    display: inline-block;
}

/* Bento Grid Styles */
.bento-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    background: rgba(99, 102, 241, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
}

.status-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.pulse {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.edu-card {
    display: none; /* Replaced by Bento Grid */
}

.nav-logo-img {
    height: 35px;
    width: 35px;
    object-fit: contain;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.logo a {
    display: flex;
    align-items: center;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.edu-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.edu-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.edu-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.edu-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.cgpa {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-weight: 700;
}


/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-align: center;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-tag {
    background: var(--bg-dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.skill-tag:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
    border-color: var(--accent-primary);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links a {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--accent-primary);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    font-size: 1.2rem;
}

.project-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.problem-solver {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.project-info h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 800;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.project-info .features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.project-info .features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.project-info .features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}


.project-tags {
    display: flex;
    gap: 10px;
}

.project-tags span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.info-item h4 {
    font-size: 1rem;
    color: var(--text-secondary);
}

.social-links-big {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.social-links-big a {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.social-links-big a i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.social-links-big a:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateX(10px);
}

.social-links-big a:hover i {
    color: white;
}

/* Highlights (Proof) */
.highlights-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.highlight-item {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    overflow: hidden; /* Ensure nothing leaks out */
}

.highlight-item img {
    width: 100%;
    height: 220px; /* Fixed height forces cropping */
    object-fit: cover;
    object-position: center 40%; /* Focus on the app content, skipping the taskbar */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.highlight-item p {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 18px;
    padding-top: 5px;
}

/* Simplified Form */
.contact-form.simplified .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-resume {
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-resume:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .hero-btns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-grid, .contact-wrapper, .education-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid, .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .skills-grid, .project-grid, .highlights-container {
        grid-template-columns: 1fr;
    }

    /* Fix project images on mobile */
    .project-img {
        height: 200px;
    }

    .project-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transform: none !important;
    }

    /* Fix highlight images on mobile */
    .highlight-item img {
        height: 180px !important;
        object-position: center 30% !important;
        transform: none !important;
        border: none !important;
    }
    
    .contact-form.simplified .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h3 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .image-wrapper {
        max-width: 280px;
    }
}

/* Typing Effect */
.typed-text {
    color: var(--accent-primary);
}
.cursor-typing {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-primary);
    margin-left: 0.1rem;
    animation: blink 1s infinite;
}
.cursor-typing.typing {
    animation: none;
}
@keyframes blink {
    0%  { background-color: var(--accent-primary); }
    49% { background-color: var(--accent-primary); }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100%  { background-color: var(--accent-primary); }
}

/* Ultra-Premium Features */
/* 1. Terminal Mode */
.terminal-toggle-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--accent-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}
.terminal-toggle-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.terminal-modal.active {
    opacity: 1;
    pointer-events: all;
}
.terminal-window {
    width: 90%;
    max-width: 800px;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid #333;
    font-family: 'Courier New', Courier, monospace;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.terminal-modal.active .terminal-window {
    transform: translateY(0);
}
.terminal-header {
    background: #323233;
    padding: 10px;
    display: flex;
    align-items: center;
}
.terminal-buttons {
    display: flex;
    gap: 8px;
}
.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}
.close-btn { background: #ff5f56; }
.min-btn { background: #ffbd2e; }
.max-btn { background: #27c93f; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
    margin-right: 50px;
}
.terminal-body {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    color: #00ff00;
}
.terminal-body p {
    margin-bottom: 10px;
}
.cmd-highlight {
    color: #ffbd2e;
}
.terminal-input-line {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
}
.prompt {
    color: #27c93f;
    margin-right: 10px;
}
#terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    flex-grow: 1;
    outline: none;
}

/* 2. Skills Wrapper & Chart */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.skills-chart-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--glass-shadow);
}
@media (max-width: 992px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile Optimization Tweak */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .nav-logo-img {
        height: 30px;
        width: 30px;
    }
    
    .logo a {
        font-size: 1.1rem;
    }

    .loader-terminal {
        width: 80%;
    }
    
    .bento-item {
        padding: 20px;
    }
    
    .terminal-window {
        width: 95%;
        height: 80vh;
    }
    
    .terminal-body {
        height: calc(80vh - 100px);
    }
}

.magnetic {
    transition: transform 0.1s linear;
}
