/* ==========================================================================
   Thuvaraga Pandi - SDET 1 Portfolio Master Stylesheet
   Design System: Dark Tech Glassmorphism with Electric Cyan & Violet Accents
   ========================================================================== */

/* 1. CSS Custom Properties / Design Tokens */
:root {
    /* Color Palette */
    --bg-main: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.3);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-violet: #7c3aed;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #00f2fe 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Spacing & Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(0, 0, 0, 0.02);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(0, 114, 255, 0.3);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --shadow-glow: 0 0 25px rgba(0, 114, 255, 0.15);
}

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

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

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

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

ul {
    list-style: none;
}

code, pre {
    font-family: var(--font-code);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Shared Layout */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0 auto;
    border-radius: var(--radius-full);
}

/* Glassmorphism Card Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #040914;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
}

.btn-accent:hover {
    opacity: 0.95;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

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

.btn-block {
    width: 100%;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Background Animation Mesh */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #00f2fe;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: #7c3aed;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #10b981;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 80px) scale(1.1); }
    100% { transform: translate(-40px, -60px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

/* 4. Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.85);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-code {
    font-family: var(--font-code);
    color: var(--accent-cyan);

}

.logo-name {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent-cyan);
}

.highlight-link {
    color: var(--accent-cyan);
    font-weight: 600;
}

.btn-contact-nav {
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
}

.btn-contact-nav:hover {
    background: rgba(0, 242, 254, 0.1);
}

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

.theme-toggle, .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover, .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-cyan);
}

.mobile-menu-btn {
    display: none;
}

/* 5. Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.typewriter-text {
    color: var(--accent-cyan);
    border-right: 3px solid var(--accent-cyan);
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

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

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

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

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-links-bar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--accent-cyan);
    color: #040914;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

/* Profile Photo Avatar */
.profile-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
}

.profile-avatar-frame {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #00f2fe 0%, #7c3aed 50%, #10b981 100%);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.35), 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.profile-avatar-frame:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.55), 0 15px 35px rgba(0, 0, 0, 0.5);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    display: block;
}

.avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 5px;
    background: #0b0f19;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Hero Pillars Card */
.hero-pillars-card {
    padding: 2rem;
    border: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pillars-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pillar-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
    transform: translateX(4px);
}

.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pillar-text {
    display: flex;
    flex-direction: column;
}

.pillar-text strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.pillar-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

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

.code-buttons {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-title {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.code-lang {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.code-keyword { color: #ff79c6; }
.code-annotation { color: #f1fa8c; }
.code-class { color: #8be9fd; }
.code-func { color: #50fa7b; }
.code-var { color: #bd93f9; }
.code-string { color: #f1fa8c; }
.code-number { color: #bd93f9; }
.code-comment { color: #6272a4; font-style: italic; }

.code-footer {
    background: #111625;
    padding: 0.6rem 1.2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator { color: var(--accent-emerald); font-weight: 600; }

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

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 7. Experience Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-violet), transparent);
    border-radius: var(--radius-full);
}

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

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    z-index: 2;
}

.timeline-content {
    padding: 2.2rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.company-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 0.4rem;
}

.current-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.company-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.role-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.experience-highlights ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.experience-highlights li {
    position: relative;
    padding-left: 1.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.highlight-icon {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

.spotlight-li {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.8rem 1rem 0.8rem 2.2rem !important;
    border-radius: var(--radius-md);
    color: var(--text-primary) !important;
}

.spotlight-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-amber);
    font-size: 1rem;
}

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

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-cyan);
}

/* 8. Skills Section & Filter Tabs */
.skill-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    color: #040914;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.skill-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.skill-category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* 9. Projects Grid & 3D Card Flipper */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card-container {
    position: relative;
    width: 100%;
    min-height: 520px;
}

.project-card {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    height: 100%;
}

.project-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
}

.project-card-front,
.project-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-lg);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-front {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
    pointer-events: auto;
}

.project-card-back {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    background: #0d121f;
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow-glow);
    z-index: 1;
    pointer-events: none;
}

/* Flipped State: Smooth Scale & Fade Swap */
.project-card-flipper.is-flipped .project-card-front {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
    pointer-events: none;
    z-index: 1;
}

.project-card-flipper.is-flipped .project-card-back {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    z-index: 3;
}

.back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.back-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-flip-back {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-flip-back:hover {
    color: var(--accent-rose);
}

.back-content {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.card-flip-btn-box {
    margin-top: 0.8rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-type {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.project-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: var(--accent-purple);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.project-features {
    margin-bottom: 1.5rem;
}

.project-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-features li i {
    color: var(--accent-emerald);
    font-size: 0.8rem;
}

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

}

.project-tech span {
    font-family: var(--font-code);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* 10. Interactive QA Console Playground */
.playground-wrapper {
    padding: 2rem;
}

.playground-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.console-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.8rem 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.console-tab:hover, .console-tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.console-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.console-panel.hidden {
    display: none;
}

.console-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.console-select, .console-input {
    background: #0d111d;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-code);
    font-size: 0.85rem;
    outline: none;
}

.console-select:focus, .console-input:focus {
    border-color: var(--accent-cyan);
}

.terminal-screen {
    background: #090d16;
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    min-height: 250px;
    max-height: 350px;
    overflow-y: auto;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.terminal-line {
    word-break: break-all;
}

.terminal-line.comment { color: #6272a4; }
.terminal-line.info { color: #8be9fd; }
.terminal-line.pass { color: #50fa7b; font-weight: bold; }
.terminal-line.fail { color: #ff5555; font-weight: bold; }
.terminal-line.summary { color: #f1fa8c; font-weight: bold; border-top: 1px dashed #6272a4; padding-top: 0.4rem; }

.console-status-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-code);
    font-size: 0.85rem;
}

.status-metric .label { color: var(--text-muted); }
.status-metric .value { font-weight: 700; }
.text-success { color: var(--accent-emerald); }
.text-danger { color: var(--accent-rose); }
.text-warning { color: var(--accent-amber); }
.text-accent { color: var(--accent-cyan); }

.status-progress {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.2s linear;
}

/* SnipToDoc Demo */
.sniptodoc-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sniptodoc-left h4, .sniptodoc-right h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.6rem;
    color: var(--accent-cyan);
}

.sniptodoc-left p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.step-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

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

.docx-generate-box {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.evidence-list {
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-height: 230px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.empty-evidence {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    margin-top: 4rem;
}

.evidence-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.evidence-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.evidence-badge.PASS { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.evidence-badge.FAIL { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); }

/* Jira Demo */
.jira-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.api-endpoint-label {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

.jira-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.jira-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.jira-card-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.jira-card-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.jira-log-output pre {
    background: #090d16;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    font-size: 0.82rem;
    max-height: 180px;
    overflow-y: auto;
}

/* 11. Awards & Recognition */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.award-card {
    padding: 2.5rem;
    position: relative;
}

.highlight-award {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--accent-amber);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.award-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.award-issuer {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 1rem;
}

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

/* 12. Education Section */
.education-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.edu-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.degree-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.institute-name {
    font-size: 1.05rem;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
}

.edu-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 13. Contact Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

.contact-info-card, .contact-form-card {
    padding: 2.5rem;
}

.contact-info-card h3, .contact-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.item-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.item-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-value {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.copy-email-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-copy-email {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-copy-email:hover {
    background: var(--accent-cyan);
    color: #040914;
}

.copy-feedback {
    display: none;
    font-size: 0.75rem;
    color: var(--accent-emerald);
    margin-top: 0.2rem;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: #0d111d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.form-response {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.form-response.success {
    display: block;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 14. Footer */
.footer {
    background: #060911;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
}

.footer-right a {
    color: var(--text-secondary);
}

.footer-right a:hover {
    color: var(--accent-cyan);
}

/* 15. Responsive Media Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .badge-status {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats, .hero-actions, .social-links-bar {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

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

    .sniptodoc-demo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.4rem;
    }

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

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

    .timeline-dot {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

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

    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .role-meta {
        align-items: flex-start;
    }

    .projects-grid {
        gap: 2.5rem;
    }

    .project-card-container,
    .project-card-flipper,
    .project-card {
        min-height: 560px;
    }

    .project-card-front,
    .project-card-back {
        padding: 1.4rem;
    }
}

/* Extra Small Screens (Mobile Phones < 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }

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

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

    .stat-card {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .timeline-content, .about-card, .project-card, .award-card, .contact-info-card, .contact-form-card {
        padding: 1.4rem;
    }

    .skills-grid, .projects-grid, .awards-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        gap: 3rem;
    }

    .project-card-container,
    .project-card-flipper,
    .project-card {
        min-height: 610px;
    }

    .project-card-front,
    .project-card-back {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .project-desc {
        font-size: 0.88rem;
        margin-bottom: 0.8rem;
    }

    .project-features {
        margin-bottom: 0.8rem;
    }

    .pillar-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   16. SnipToDoc Inline App Visual Preview Frame
   ========================================================================== */
.mini-win-frame {
    background: #0f1422;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.mini-win-frame:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
}

.mini-win-header {
    background: #171e30;
    padding: 0.5rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-win-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mini-win-dots {
    display: flex;
    gap: 0.3rem;
}

.mini-win-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mini-win-body {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.78rem;
}

.mini-win-btn-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mini-win-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.mini-win-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mini-box-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.mini-opt-row {
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mini-path-row {
    color: var(--text-secondary);
}

.mini-path-row code {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-code);
}

.mini-log-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-code);
    font-size: 0.75rem;
}

.mini-btn-docx {
    background: linear-gradient(135deg, #2b579a, #1e3e6d);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(43, 87, 154, 0.4);
    transition: var(--transition);
    width: 100%;
    margin-top: 0.2rem;
}

.mini-btn-docx:hover {
    background: linear-gradient(135deg, #3667af, #264b82);
    box-shadow: 0 6px 18px rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

.mini-btn-docx:active {
    transform: translateY(0);
}
