/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    /* Colors */
    --bg-color: #0a0a0f; /* Very dark tech blue/black */
    --bg-alt: #12121a;
    --card-bg: rgba(18, 18, 26, 0.7);
    --text-main: #e2e8f0;
    --text-muted: #8b949e;
    
    /* Accents - Neon Tech */
    --accent-primary: #00ffcc; /* Neon Cyan */
    --accent-secondary: #7000ff; /* Neon Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Utilities */
    --border-radius: 8px; /* Sharper corners for tech feel */
    --transition: all 0.3s ease;
    --glass-border: 1px solid rgba(0, 255, 204, 0.15);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --neon-glow: 0 0 10px rgba(0, 255, 204, 0.2), inset 0 0 5px rgba(0, 255, 204, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    opacity: 0.15; /* Dimmed matrix background */
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Typography & Reusable Classes
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-mono);
}

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

.section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: rgba(30, 41, 59, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.highlight {
    color: var(--accent-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Glassmorphism Card Base */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0, 255, 204, 0.15), inset 0 0 15px rgba(0, 255, 204, 0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px; /* Techy sharp edges */
    font-weight: 600;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(15, 23, 42, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 100;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-content a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:hover {
    background-color: rgba(0, 255, 204, 0.1);
    color: var(--accent-primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ==========================================================================
   Tech Theme Specific Utilities
   ========================================================================== */
.tech-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.prompt {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    margin-right: 0.5rem;
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 1.2em;
    background-color: var(--accent-primary);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

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

.tech-tag {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

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

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    font-family: var(--font-mono);
    padding: 0.5rem 0;
}

.cmd-prompt {
    color: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition);
}

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

.nav-links a:hover .cmd-prompt, .nav-links a.active .cmd-prompt {
    color: var(--accent-primary);
    opacity: 1;
}

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

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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.lang-switch a {
    color: var(--text-muted);
    font-weight: 700;
    font-family: var(--font-mono);
}

.lang-switch a.active, .lang-switch a:hover {
    color: var(--accent-primary);
}

.lang-switch a::after {
    display: none; /* No underline for language switch */
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   Hero / Terminal Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for navbar */
    position: relative;
}

.terminal-window {
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--neon-glow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 100%;
}

.terminal-header {
    background: #1a1a24;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-buttons .close { background-color: #ff5f56; }
.terminal-buttons .minimize { background-color: #ffbd2e; }
.terminal-buttons .maximize { background-color: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

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

.hero-content {
    flex: 1;
}

.greeting {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    position: relative;
    display: inline-block;
}

/* Glitch Effect */
.name::before, .name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.name::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.name::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(11px, 9999px, 79px, 0); }
  20% { clip: rect(61px, 9999px, 12px, 0); }
  40% { clip: rect(2px, 9999px, 92px, 0); }
  60% { clip: rect(81px, 9999px, 42px, 0); }
  80% { clip: rect(31px, 9999px, 22px, 0); }
  100% { clip: rect(51px, 9999px, 62px, 0); }
}
@keyframes glitch-anim2 {
  0% { clip: rect(81px, 9999px, 12px, 0); }
  20% { clip: rect(21px, 9999px, 72px, 0); }
  40% { clip: rect(61px, 9999px, 32px, 0); }
  60% { clip: rect(1px, 9999px, 92px, 0); }
  80% { clip: rect(41px, 9999px, 52px, 0); }
  100% { clip: rect(91px, 9999px, 22px, 0); }
}

.title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

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

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

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

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(139,92,246,0.5));
    animation: float 6s ease-in-out infinite;
}

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

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.9);
}

.contact-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 204, 0.05);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 12px; /* Square with slight rounding */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.contact-card:hover .icon {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    color: var(--accent-primary);
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-muted);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

/* ==========================================================================
   Experience & Education Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

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

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.8rem;
}

/* Tech Badges */
.tech-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    cursor: default;
}

.tech-badge i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.tech-badge:hover {
    background: rgba(0, 255, 204, 0.15);
    border-color: var(--accent-primary);
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
    color: var(--accent-primary);
}


/* ==========================================================================
   Education & Certificates (Grid 2 cols)
   ========================================================================== */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
}

.certificates-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.cert-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cert-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}
   ========================================================================== */
.languages-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.lang-card {
    width: 250px;
    text-align: center;
}

.lang-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.lang-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lang-circle circle {
    fill: none;
    stroke-width: 8;
    stroke: rgba(255, 255, 255, 0.05);
}

.lang-circle .progress-circle {
    stroke: var(--accent-primary);
    stroke-dasharray: 283; /* 2 * PI * 45 */
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.lang-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lang-name {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.lang-level {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}
/* ==========================================================================
   Modal (Popup)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--accent-primary);
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 255, 204, 0.2);
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-secondary);
    text-decoration: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .terminal-body {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .summary {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .terminal-title {
        font-size: 0.8rem;
        display: none; /* Hide on very small screens to save space */
    }

    .terminal-header {
        justify-content: flex-start;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .greeting {
        font-size: 0.85rem;
    }
    
    .terminal-body {
        padding: 1.5rem 1rem;
    }
    
    .timeline::before {
        left: 15px; /* Adjust timeline line for smaller screens */
    }

    .timeline-dot {
        left: 15px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1.2rem 1rem;
    }
    
    .tech-badges-container {
        gap: 0.5rem;
    }
    
    .tech-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .certificate-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Make contact grid single column */
    }

    .image-wrapper {
        width: 180px;
        height: 180px;
    }
}
