:root {
    /* Color Palette */
    --bg-dark: #060818;
    --bg-light: #0B1225;
    --accent-indigo: #4F46E5;
    --accent-blue: #3B82F6;
    --accent-cyan: #22D3EE;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Animation Timings */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--text-white), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--bg-dark), var(--bg-light));
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: moveBlobs 20s infinite alternate linear;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-indigo);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -20%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes moveBlobs {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 150px) scale(1.2); }
    100% { transform: translate(-50px, 200px) scale(0.9); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Mouse Spotlight & Cursor */
.mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    filter: blur(8px);
    opacity: 0.7;
    transition: width 0.2s, height 0.2s;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    text-align: center;
}

.animated-logo {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.loading-bar .progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--accent-indigo), var(--accent-cyan));
    animation: loadProgress 2s ease forwards;
}

@keyframes pulse {
    from { opacity: 0.6; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); }
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-indigo), var(--accent-cyan));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(6, 8, 24, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(6, 8, 24, 0.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-fast);
}

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

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

/* Glass Card Common Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 10px 40px 0 rgba(34, 211, 238, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-circle {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
}

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

/* Hero Section */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img-wrapper {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3), inset 0 0 20px rgba(79, 70, 229, 0.2);
    position: relative;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-indigo));
    z-index: -1;
    opacity: 0.5;
    filter: blur(15px);
    transition: opacity 0.5s ease;
}

.profile-img-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.5), inset 0 0 30px rgba(79, 70, 229, 0.4);
    border-color: rgba(34, 211, 238, 0.4);
}

.profile-img-wrapper:hover::before {
    opacity: 0.8;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-weight: 500;
}

.large-name {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-container {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.typing-text {
    color: var(--text-white);
}

.cursor {
    display: inline-block;
    width: 3px;
    animation: blink 1s infinite;
    color: var(--accent-cyan);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Skills Section */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.category-title i {
    color: var(--accent-blue);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-card {
    padding: 1rem 1.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.cert-icon {
    font-size: 2rem;
    color: var(--accent-indigo);
    background: rgba(79, 70, 229, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.cert-card:hover .cert-icon {
    background: var(--accent-indigo);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.cert-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-placeholder {
    height: 200px;
    background: linear-gradient(45deg, #111827, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.project-card:hover .project-img-placeholder i {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
}

/* Project Thumbnail (real image) */
.project-img-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.project-img-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform var(--transition-slow);
    display: block;
}

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

.project-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,8,24,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.75rem;
}

.project-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.5);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    color: var(--accent-cyan);
}

/* ============================================
   LearnEra Founding Vision Section
   ============================================ */

/* Nav highlight */
.nav-link-highlight {
    color: var(--accent-cyan) !important;
    position: relative;
}

.nav-link-highlight::after {
    background: var(--accent-cyan) !important;
    width: 100% !important;
}

/* Section wrapper */
.learnera-section {
    background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.03) 50%, transparent 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* Header */
.learnera-header {
    margin-bottom: 3rem;
}

.learnera-eyebrow {
    margin-bottom: 1rem;
}

.learnera-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.07);
}

.learnera-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* Origin story card */
.learnera-origin {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2.5rem;
}

.learnera-origin-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.learnera-origin-body h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.learnera-origin-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.75;
    font-size: 1rem;
}

.learnera-origin-body p em {
    color: var(--accent-cyan);
    font-style: italic;
}

.learnera-quote {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
}

/* Mission grid */
.learnera-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.learnera-mission-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.learnera-mission-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--accent-indigo);
    transition: all var(--transition-normal);
}

.learnera-mission-card:hover .learnera-mission-icon {
    background: var(--accent-indigo);
    color: white;
    transform: scale(1.08) rotate(5deg);
}

.learnera-mission-card h3 {
    font-size: 1.15rem;
    color: var(--text-white);
}

.learnera-mission-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Tracks */
.learnera-tracks {
    margin-bottom: 3rem;
}

.learnera-tracks-title {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.learnera-tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.learnera-track-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
}

.learnera-track-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.1);
}

.learnera-track-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.learnera-track-web   { background: linear-gradient(135deg, #4F46E5, #3B82F6); }
.learnera-track-design { background: linear-gradient(135deg, #ec4899, #a855f7); }
.learnera-track-ai    { background: linear-gradient(135deg, #22D3EE, #0ea5e9); }

.learnera-track-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.learnera-track-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.learnera-track-level {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

/* CTA band */
.learnera-cta {
    margin-top: 1rem;
}

.learnera-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    border-color: rgba(34, 211, 238, 0.2);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(34, 211, 238, 0.05));
    flex-wrap: wrap;
}

.learnera-cta-text h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.learnera-cta-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.learnera-cta-text strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;

    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-cyan), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    z-index: 2;
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    transition: all var(--transition-normal);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    transform: translateX(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.w-100 {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
}

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

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 3D Tilt Effect Utilities */
.tilt-effect {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* PDF Viewer Modal Styles */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 8, 24, 0.85);
    backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.pdf-modal.open {
    opacity: 1;
    visibility: visible;
}

.pdf-modal-content {
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.pdf-modal.open .pdf-modal-content {
    transform: scale(1);
}

.pdf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.pdf-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#pdf-zoom-level {
    font-weight: 600;
    width: 50px;
    text-align: center;
}

.pdf-viewer-container {
    flex-grow: 1;
    overflow: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    user-select: none;
}

canvas#pdf-render {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    background: #fff;
}

.pdf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Certificate Card Additions */
.cert-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    justify-content: space-between;
}

.cert-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cert-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

.cert-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cert-info .cert-date {
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE STYLES
   Breakpoints: 992px | 768px | 480px | 360px
   ============================================ */

/* --- Tablet & Below (992px) --- */
@media (max-width: 992px) {
    .large-name {
        font-size: 4rem;
    }


    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 14px;
    }

    /* Certifications: allow smaller min width on tablets */
    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    /* Projects: allow smaller min width on tablets */
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* LearnEra: stack origin card on tablet */
    .learnera-origin {
        flex-direction: column;
        gap: 1.5rem;
    }

    .learnera-cta-content {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }
}

/* --- Mobile (768px and below) --- */
@media (max-width: 768px) {

    /* --- Navigation --- */
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        /* Hide by default; shown when .active is toggled by JS */
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(6, 8, 24, 0.97);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.4rem;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        position: relative;
    }

    /* --- Sections --- */
    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* --- Hero Section --- */
    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
        gap: 2rem;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }

    .profile-img-wrapper {
        width: 220px;
        height: 220px;
    }

    .greeting {
        font-size: 1rem;
    }

    .large-name {
        font-size: 2.6rem;
        letter-spacing: -0.5px;
        word-break: break-word;
    }

    .typing-container {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* --- About Section --- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.2rem 1rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    /* --- Skills Section --- */
    .skills-wrapper {
        gap: 2rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .skills-grid {
        gap: 0.75rem;
    }

    .skill-card {
        padding: 0.7rem 1.1rem;
        font-size: 0.9rem;
    }

    /* --- Certifications Section --- */
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cert-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    /* --- Projects Section --- */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-info {
        padding: 1.25rem;
    }

    .project-info h3 {
        font-size: 1.25rem;
    }

    /* --- Experience / Timeline --- */
    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 44px;
        margin-bottom: 2rem;
    }

    .timeline-dot {
        left: 10px;
        top: 1.2rem;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-content h3 {
        font-size: 1.15rem;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    /* --- Contact Section --- */
    .contact-info h3 {
        font-size: 1.2rem;
    }

    .contact-links {
        gap: 0.75rem;
    }

    .contact-link {
        padding: 0.875rem 1rem;
    }

    .contact-link span {
        font-size: 0.9rem;
        word-break: break-all;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* --- PDF Modal --- */
    .pdf-modal-content {
        width: 95%;
        height: 92vh;
        padding: 1rem;
    }

    .pdf-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pdf-title {
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .pdf-controls {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .pdf-controls .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }

    .pdf-pagination {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 1.5rem 0;
        font-size: 0.8rem;
    }

    /* --- Back to Top --- */
    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* --- Glass Card default padding reduction --- */
    .glass-card {
        padding: 1.25rem;
    }
}

/* --- Small Mobile (480px and below) --- */
@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .large-name {
        font-size: 2.1rem;
    }

    .typing-container {
        font-size: 1.1rem;
    }

    .profile-img-wrapper {
        width: 180px;
        height: 180px;
    }

    /* About stats: keep 2 columns but tighter */
    .about-stats {
        gap: 0.75rem;
    }

    .stat-card h3 {
        font-size: 1.3rem;
    }

    /* Timeline text slightly smaller */
    .timeline-content h3 {
        font-size: 1.05rem;
    }

    /* Contact link text: prevent email overflow */
    .contact-link {
        flex-wrap: wrap;
    }
}

/* --- Very Small Mobile (360px and below) --- */
@media (max-width: 360px) {
    .container {
        padding: 0 1rem;
    }

    .large-name {
        font-size: 1.9rem;
    }

    .typing-container {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .cta-group .btn {
        max-width: 100%;
    }

    .profile-img-wrapper {
        width: 160px;
        height: 160px;
    }

    .skill-card {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }
}