/* CSS Design System and Custom Styling */

:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-primary: #080c14;
    --bg-secondary: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.65);
    --border-glass: rgba(255, 255, 255, 0.07);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #3b82f6; /* Azure Royal Blue */
    --accent-secondary: #06b6d4; /* Cyan */
    --accent-glow: rgba(59, 130, 246, 0.25);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-hover: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --shadow-color: rgba(0, 0, 0, 0.55);
    
    /* Layout Constants */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #2563eb;
    --accent-secondary: #0891b2;
    --accent-glow: rgba(37, 99, 235, 0.12);
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #0e7490 100%);
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

/* Dynamic Particles Canvas Background */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Background Gradients & Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--border-glass) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: -3;
    pointer-events: none;
    opacity: 0.6;
}

.blob-1, .blob-2, .blob-3 {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.22;
    transition: all 0.5s ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    animation: drift-blob-1 25s infinite ease-in-out alternate;
}

.blob-2 {
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation: drift-blob-2 30s infinite ease-in-out alternate;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 75%); /* Violet Blob */
    opacity: 0.12;
    animation: drift-blob-3 35s infinite ease-in-out alternate;
}

[data-theme="light"] .blob-3 {
    background: radial-gradient(circle, #a78bfa 0%, transparent 75%);
    opacity: 0.05;
}

/* GPU-Accelerated Soft Ambient Blob Animations */
@keyframes drift-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, 15%) scale(1.1); }
    100% { transform: translate(15%, -10%) scale(0.9); }
}

@keyframes drift-blob-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15%, -15%) scale(0.85); }
    100% { transform: translate(-12%, 10%) scale(1.15); }
}

@keyframes drift-blob-3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20%, -10%) scale(1.2); }
    100% { transform: translate(10%, 20%) scale(0.9); }
}

[data-theme="light"] .blob-1, 
[data-theme="light"] .blob-2 {
    opacity: 0.09;
}

/* Glassmorphism Design Pattern */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 20px var(--accent-glow);
}

[data-theme="light"] .glass:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 15px var(--accent-glow);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: all var(--transition-speed) ease;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.main-header.scrolled {
    height: 70px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-glass);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform var(--transition-speed);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-accent {
    color: var(--accent-secondary);
    font-weight: 800;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-glass);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    background: var(--bg-glass);
}

.theme-toggle:hover {
    background: var(--border-glass);
    border-color: var(--text-muted);
}

.theme-toggle .sun-icon {
    display: none;
    width: 20px;
    height: 20px;
}

.theme-toggle .moon-icon {
    display: block;
    width: 20px;
    height: 20px;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

.cta-btn {
    padding: 0.6rem 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.cta-btn:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Aesthetic text glow */
.glow-text {
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.typewriter {
    border-right: none;
    color: var(--accent-secondary);
}

.cursor {
    color: var(--accent-secondary);
    animation: blink-caret 0.75s step-end infinite;
    font-weight: 300;
}

@keyframes blink-caret {
    from, to { color: transparent }
    50% { color: var(--accent-secondary); }
}

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

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Interactive 3D Perspective Card Tilt Class */
.interactive-tilt {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    transform-style: preserve-3d;
}

.stat-item {
    padding: 1.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    min-width: 140px;
    border-radius: 12px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.hero-actions-group {
    display: flex;
    gap: 1.2rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--gradient-accent);
    color: #ffffff;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: 0 4px 20px var(--accent-glow), 0 0 10px var(--accent-secondary);
    transform: translateY(-2px);
}

/* Neon buttons */
.glow-btn {
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed);
}

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

/* Hero Visual Architecture */
.hero-visual {
    position: relative;
    width: 100%;
}

.visual-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.arch-canvas {
    position: relative;
    width: 100%;
    height: 100%;
}

.cloud-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 10px 25px var(--shadow-color);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-primary);
    width: 115px;
    transition: all var(--transition-speed);
    z-index: 2;
}

.cloud-node svg {
    width: 28px;
    height: 28px;
    margin-bottom: 0.4rem;
    color: var(--accent-secondary);
}

.cloud-node.central {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 135px;
    background: var(--gradient-accent);
    color: #ffffff;
    border: none;
    animation: bounce 6s infinite ease-in-out;
}

.cloud-node.central svg {
    color: #ffffff;
}

.cloud-node.sub.node-1 {
    top: 15%;
    left: 15%;
    animation: float-node-1 7s infinite ease-in-out;
}

.cloud-node.sub.node-2 {
    top: 15%;
    right: 15%;
    animation: float-node-2 8s infinite ease-in-out;
}

.cloud-node.sub.node-3 {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation: float-node-3 6s infinite ease-in-out;
}

/* Glowing connections */
.connecting-line {
    position: absolute;
    background: linear-gradient(to right, transparent, var(--accent-secondary), transparent);
    height: 2px;
    z-index: 1;
    opacity: 0.35;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -52%); }
    50% { transform: translate(-50%, -48%); }
}

@keyframes float-node-1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes float-node-2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(8px) scale(0.98); }
}

@keyframes float-node-3 {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-50%, -6px) scale(1.03); }
}

/* Section Common Titles */
.section-title-wrap {
    margin-bottom: 3.5rem;
}

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

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title.small {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0 auto;
}

/* Sections padding */
.about-section, .skills-section, .experience-section, .certifications-section, .education-section, .contact-section {
    padding: 6.5rem 0;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.about-text {
    padding: 2.5rem;
}

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

.about-text strong {
    color: var(--text-primary);
}

.personal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.info-tag {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.info-tag strong {
    color: var(--text-primary);
}

/* Terminal Simulator Styling */
.terminal-section {
    padding: 6.5rem 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.terminal-window {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.1);
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-header {
    background: #111827;
    padding: 0.8rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 0.45rem;
}

.t-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.t-btn.red { background: #ff5f56; }
.t-btn.yellow { background: #ffbd2e; }
.t-btn.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #94a3b8;
}

.terminal-status {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-indicator.connected {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.92rem;
    color: #cbd5e1;
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.terminal-output p {
    margin-bottom: 0.5rem;
    line-height: 1.45;
    word-break: break-all;
}

.terminal-code {
    background: var(--border-glass);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-code);
}

.cyan-text { color: #38bdf8; }
.gray-text { color: #64748b; }
.green-text { color: #34d399; }
.gold-text { color: #fbbf24; }
.red-text { color: #f87171; }

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.terminal-prompt {
    color: #34d399;
    white-space: nowrap;
}

#terminalInput {
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font-family: var(--font-code);
    font-size: 0.92rem;
    width: 100%;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-category-card {
    padding: 2.2rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.skill-category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.skill-category-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-category-card li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-category-card li::before {
    content: '✦';
    color: var(--accent-secondary);
    font-size: 0.8rem;
}

/* Experience Timeline styling */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    height: 100%;
    width: 2px;
    background: var(--border-glass);
}

.timeline-item {
    position: relative;
    padding: 2.2rem;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2.85rem;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    transition: background-color var(--transition-speed);
    z-index: 5;
    box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-secondary);
    box-shadow: 0 0 12px var(--accent-secondary);
}

.timeline-header-info {
    margin-bottom: 1.2rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-glow);
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.timeline-role {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.client-tag {
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
    background: var(--border-glass);
    border-radius: 4px;
    color: var(--text-muted);
}

.timeline-body-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline-body-content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.2rem;
}

.timeline-body-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* Certifications */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

.cert-badge-logo {
    min-width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 0.2rem;
}

.cert-badge-logo.azure-color {
    background: #0078d4;
    color: #ffffff;
}

.cert-badge-logo.generic-color {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.cert-details h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Education & Info Section */
.edu-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
}

.edu-column, .info-column {
    padding: 2.5rem;
}

.edu-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edu-item {
    border-left: 2px solid var(--border-glass);
    padding-left: 1.2rem;
}

.edu-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.edu-school {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.edu-year {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

.personal-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-val {
    color: var(--text-primary);
}

/* Contact Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
}

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

.info-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.info-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-text h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

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

.contact-form-wrap {
    padding: 2.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, 
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.full-width {
    width: 100%;
}

/* Footer */
.main-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-secondary);
}

.footer-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

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

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions-group {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 450px;
        margin: 0 auto;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .main-header {
        height: 70px;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid var(--border-glass);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

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

    .personal-info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Hero section improvements on phone screen */
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        min-height: auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .stat-item {
        width: 100%;
        min-width: 0;
        align-items: center;
    }

    .hero-actions-group {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Hide complex absolute cloud diagram on small phones to prevent horizontal overflow */
    .hero-visual {
        display: none;
    }

    /* Disable/Hide heavy background particle animation on phones to save battery/performance */
    .particle-canvas {
        display: none;
    }

    /* Upgraded glowing ambient blobs to be visible and vibrant on smaller phone viewports */
    .blob-1, .blob-2, .blob-3 {
        width: 90vw;
        height: 90vw;
        filter: blur(75px);
        opacity: 0.35;
    }
    
    .blob-1 {
        top: -10%;
        right: -20%;
    }
    
    .blob-2 {
        bottom: -20%;
        left: -20%;
    }
    
    .blob-3 {
        top: 35%;
        left: 5%;
        width: 80vw;
        height: 80vw;
        opacity: 0.22;
    }

    [data-theme="light"] .blob-1,
    [data-theme="light"] .blob-2 {
        opacity: 0.15;
    }
    [data-theme="light"] .blob-3 {
        opacity: 0.08;
    }
    
    /* Terminal text adjustments for phone */
    .terminal-body {
        font-size: 0.82rem;
        height: 320px;
        padding: 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.85rem;
        top: 2.6rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }
}

