/* Font-proof CSS reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on tap for Android */
    cursor: none; /* Hide default cursor for custom cursor */
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f77f00;
    --accent-color: #d62828;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1a1a1a;
    --gradient: linear-gradient(135deg, #ff6b35 0%, #f77f00 100%);
    --gradient-hover: linear-gradient(135deg, #f77f00 0%, #d62828 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography Variables */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-tech: 'Space Grotesk', monospace;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
    /* Subtle Tech Grid Background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(214, 40, 40, 0.05) 0%, transparent 25%);
    background-attachment: fixed;
    font-size: 16px;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Noise Overlay for Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    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)' opacity='1'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover state for cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto; }
}

/* Ambient Glow Orbs */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}
.glow-1 { top: -100px; left: -100px; }
.glow-2 { bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(247, 127, 0, 0.08) 0%, transparent 70%); }

/* Typography Updates */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Force font on text elements only - exclude icons */
html, body, h1, h2, h3, h4, h5, h6, p, a, strong, em,
span:not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]),
ul, ol, li, form, label, input, textarea, button, section, article, header, footer, nav,
div:not([class*="fa-"]) {
    /* Font family handled by specific classes or body default */
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preserve icon fonts (FIXED) */
.fa, .fas, .fa-solid, [class*="fa-solid"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.far, .fa-regular, [class*="fa-regular"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}
.fab, .fa-brands, [class*="fa-brands"] {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Smooth Scrolling */
html { scroll-behavior: smooth; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }

/* Navigation - Floating Glass Capsule Style */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(15, 15, 15, 0.7); /* Darker for better contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    z-index: 1000;
    padding: 0.8rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.15);
    padding: 0.6rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    margin: 0 auto; /* Center links in the capsule */
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-tech); /* Tech font for nav */
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none; /* Removed border for cleaner look */
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}
.mobile-menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    /* Placeholder background image */
    background-image: url('https://images.unsplash.com/photo-1517134191118-9d595e4c8c2b?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(26, 26, 26, 0.75) 50%,
        rgba(255, 107, 53, 0.1) 100%);
    z-index: 2;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.8) 0%, rgba(255, 107, 53, 0) 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    filter: blur(1px);
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
    10% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.6; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) translateX(100px) scale(0.5); opacity: 0; }
}

.hero-content {
    text-align: center;
    z-index: 4;
    color: var(--text-primary);
    padding: 2rem;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 1000px;
    width: 100%;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem); /* Larger, bolder heading */
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    /* Subtle text gradient */
    background: linear-gradient(to right, #ffffff, #d1d1d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.degree {
    font-family: var(--font-tech);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.hero .subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: var(--text-secondary);
}

#typingText {
    border-right: 3px solid var(--primary-color);
    padding-right: 6px;
    animation: blink 1s infinite;
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    font-family: var(--font-tech);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.btn:hover::before { width: 400px; height: 400px; }

/* Sections */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* About */
#about {
    background: transparent; /* Changed to transparent for background blend */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 30px;
    background: var(--gradient);
    margin: 0 auto;
    position: relative;
    animation: float-animation 4s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.profile-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 107, 53, 0.2) 100%);
    z-index: 1;
}

@keyframes float-animation {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-15px) rotateX(2deg); }
}

.about-text {
    color: var(--text-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px; /* More rounded */
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Skills */
#skills { background: transparent; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.skill-card:hover {
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
    display: block;
}

.skill-name {
    font-family: var(--font-tech);
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.4s ease;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Learning Section (New) */
#learning { background: transparent; }

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.learning-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.4s ease;
}

.learning-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.learning-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.learning-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.learning-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Carousel Styles */
#projects {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
}

.projects-carousel {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 3rem;
    perspective: 1000px;
}

.carousel-track-container {
    width: 100%;
    padding: 2rem 0;
    overflow: visible; 
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 450px;
    transform-style: preserve-3d;
}

/* Whole card is a link */
.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.project-card {
    background: rgba(26, 26, 26, 0.6); /* Darker, more stable base */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    
    /* 3D Carousel Positioning */
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 400px;
    height: 420px; /* Fixed height for uniformity */
    display: flex;
    flex-direction: column;
    
    /* Core transition: Removed z-index to prevent blending glitches */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s, box-shadow 0.35s, border-color 0.35s;
    transform-origin: center center;
    
    /* 3D Rendering Fixes */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    
    /* Default state */
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
    z-index: 0;
    pointer-events: none;
}

/* Active State (Front & Center) */
.project-card.active {
    opacity: 1;
    z-index: 10;
    transform: translateX(-50%) scale(1) translateZ(0);
    pointer-events: auto;
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.25);
    border-color: var(--primary-color); /* Aesthetic Border */
    background: rgba(26, 26, 26, 0.85);
}

/* Previous State (Side Back Left) */
.project-card.prev {
    opacity: 0.4;
    z-index: 5;
    transform: translateX(-120%) scale(0.85) translateZ(-50px) rotateY(15deg);
    pointer-events: auto; 
}

/* Next State (Side Back Right) */
.project-card.next {
    opacity: 0.4;
    z-index: 5;
    transform: translateX(20%) scale(0.85) translateZ(-50px) rotateY(-15deg);
    pointer-events: auto;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.project-card.active:hover {
    box-shadow: 0 30px 60px rgba(255, 107, 53, 0.4);
    transform: translateX(-50%) scale(1.02);
}

.project-card.active:hover::before { opacity: 1; }

.project-card.prev:hover, 
.project-card.next:hover {
    opacity: 0.7;
    z-index: 6;
}

.project-card:focus-visible {
    outline: 3px solid rgba(255, 107, 53, 0.45);
    outline-offset: 6px;
    border-radius: 20px;
}

/* Keep text readable on hover overlay */
.project-card:hover .project-title,
.project-card:hover .project-subtitle,
.project-card:hover .project-description,
.project-card:hover .project-tag {
    color: var(--bg-primary);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.project-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.project-card:hover .project-icon {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14);
}

.project-icon i {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    font-family: var(--font-heading);
}

.project-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-top: 0.75rem;
    flex-grow: 1; /* Pushes tags to bottom */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto; /* Aligns to bottom */
    padding-top: 1.25rem;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: var(--font-tech);
    text-transform: uppercase;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20; /* Higher than cards */
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Responsive Carousel Logic */
@media (max-width: 768px) {
    .project-card {
        width: 85%;
        max-width: 340px;
    }
    
    /* On mobile, reduce the side distance so they don't go off screen */
    .project-card.prev {
        transform: translateX(-110%) scale(0.8);
    }
    .project-card.next {
        transform: translateX(10%) scale(0.8);
    }
    
    .carousel-btn { width: 35px; height: 35px; font-size: 0.9rem; }
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
    .projects-carousel { padding: 0 1.5rem; }
}

/* Education */
#education { background: transparent; }

.education-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.education-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: educationFloat 6s ease-in-out infinite;
}

.education-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.45), rgba(247, 127, 0, 0.1), rgba(214, 40, 40, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    pointer-events: none;
}

.education-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -110px;
    right: -80px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.18) 0%, transparent 70%);
    filter: blur(10px);
    animation: educationGlow 7s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.education-card:nth-child(2) { animation-delay: 0.4s; }
.education-card:nth-child(3) { animation-delay: 0.8s; }
.education-card:nth-child(4) { animation-delay: 1.2s; }

.education-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 22px 45px rgba(255, 107, 53, 0.18);
    border-color: rgba(255, 107, 53, 0.55);
}

.education-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.education-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.22);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.12);
    animation: educationIconPulse 4s ease-in-out infinite;
}

.education-icon i {
    font-size: 1.7rem;
    color: var(--primary-color);
}

.education-card-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    font-size: 1.45rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.25;
}

.education-degree {
    color: var(--primary-color);
    font-family: var(--font-tech);
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.education-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

@keyframes educationGlow {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    50% { transform: scale(1.08) translate(-10px, 14px); opacity: 1; }
}

@keyframes educationIconPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}

/* Contact (Updated to Big Typography) */
#contact {
    background: transparent;
    padding-bottom: 8rem;
}

.contact-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.contact-content p.big-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.2; /* Adjusted line-height */
    margin-bottom: 3rem;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    padding-bottom: 20px; /* Adjusted padding */
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 1.1rem;
}

.contact-item:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}
.contact-item:hover a { color: var(--primary-color); }

.contact-item i { font-size: 1.4rem; color: var(--primary-color); }

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.social-link {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

footer p { margin-bottom: 0.5rem; font-size: 1rem; font-family: var(--font-tech); }

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.welcome-text span {
    opacity: 0;
    transform: translateY(20px);
    animation: welcomeFadeIn 0.8s forwards;
}

.welcome-text span:nth-child(1) { animation-delay: 0.2s; }
.welcome-text span:nth-child(2) { animation-delay: 0.6s; }
.welcome-text span:nth-child(3) { animation-delay: 1.0s; color: var(--primary-color); }

@keyframes welcomeFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: var(--gradient);
    z-index: 9998;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.8s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* Responsive General */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }

    /* Nav Fixes for Mobile */
    nav {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        background: rgba(10, 10, 10, 0.95);
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active { right: 0; }
    .mobile-menu-toggle { display: block; }

    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.2rem; }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .profile-img { width: 250px; height: 250px; }
    .about-text { padding: 1.5rem; }

    .education-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-card {
        padding: 1.5rem;
        animation-duration: 5.5s;
    }

    .contact-content { padding: 2rem 1rem; margin: 0; }
    .contact-content p.big-text { font-size: 2.5rem; } /* Adjusted for mobile */
    .contact-info { flex-direction: column; gap: 1rem; }
    .contact-item { width: 100%; justify-content: center; }

    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1.2rem; }
}

/* Small Phones */
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .degree { font-size: 0.9rem; padding: 0.4rem 1rem; }
    .btn { padding: 0.8rem 1.5rem; width: 100%; text-align: center; }
    .cta-buttons { gap: 1rem; flex-direction: column; width: 100%; max-width: 300px; margin: 2rem auto 0; }
    
    .section-title { font-size: 1.8rem; margin-bottom: 2.5rem; }
    
    .project-content { padding: 1.25rem; }
    .project-title { font-size: 1.25rem; }
    .project-head-text p { font-size: 0.85rem; }
    
    /* Clamp description so tags don't overflow */
    .project-description { 
        font-size: 0.9rem; 
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Adjust tags to fit better */
    .project-tags {
        gap: 0.4rem;
    }
    .project-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .education-card-content h3 { font-size: 1.15rem; }
    .education-degree,
    .education-description { font-size: 0.9rem; }
}