/* ============================================
   CSS VARIABLES (Custom Properties)
   Define colors, fonts, and transitions once
   ============================================ */
:root {
    /* Color Scheme - Cyberpunk/Hacker Theme */
    --primary: #00ff88;        /* Neon Green */
    --secondary: #00d4ff;      /* Cyan */
    --accent: #ff6b6b;         /* Red/Pink for accents */
    
    /* Background Colors */
    --bg-primary: #0a0a0a;     /* Main background */
    --bg-secondary: #111111;   /* Section backgrounds */
    --bg-card: #1a1a1a;        /* Card backgrounds */
    
    /* Text Colors */
    --text-primary: #ffffff;   /* White text */
    --text-secondary: #a0a0a0; /* Gray text */
    --text-muted: #666666;     /* Dark gray text */
    
    /* Other */
    --border: #2a2a2a;         /* Border color */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   Remove default browser styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ============================================
   MATRIX RAIN CANVAS
   Background animation layer
   ============================================ */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    opacity: 0.15; /* Subtle effect */
    pointer-events: none; /* Allow clicks through */
}

/* ============================================
   NAVIGATION BAR
   Fixed at top, glassmorphism effect
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px); /* Glass effect */
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

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

/* Underline animation on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

/* Hamburger Menu - Hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   Full viewport height, centered content
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 5% 50px; /* Top padding for navbar */
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* Terminal Window Styling */
.terminal-window {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transform: perspective(1000px) rotateX(5deg);
    transition: var(--transition);
}

.terminal-window:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

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

/* Mac-style window buttons */
.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn.close { background: #ff5f56; }
.btn.minimize { background: #ffbd2e; }
.btn.maximize { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-right: 60px;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    text-align: left;
}

.prompt {
    color: var(--primary);
    margin-right: 0.5rem;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--primary);
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

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

/* Glitch Effect for Name */
.glitch {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0.05em 0 0 var(--accent), -0.025em -0.05em 0 var(--secondary),
                 0.025em 0.05em 0 var(--primary);
    animation: glitch 2s infinite;
}

/* Glitch pseudo-elements for extra effect */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

/* Glitch keyframes */
@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--accent), -0.05em -0.025em 0 var(--secondary), -0.025em 0.05em 0 var(--primary); }
    14% { text-shadow: 0.05em 0 0 var(--accent), -0.05em -0.025em 0 var(--secondary), -0.025em 0.05em 0 var(--primary); }
    15% { text-shadow: -0.05em -0.025em 0 var(--accent), 0.025em 0.025em 0 var(--secondary), -0.05em -0.05em 0 var(--primary); }
    49% { text-shadow: -0.05em -0.025em 0 var(--accent), 0.025em 0.025em 0 var(--secondary), -0.05em -0.05em 0 var(--primary); }
    50% { text-shadow: 0.025em 0.05em 0 var(--accent), 0.05em 0 0 var(--secondary), 0 -0.05em 0 var(--primary); }
    99% { text-shadow: 0.025em 0.05em 0 var(--accent), 0.05em 0 0 var(--secondary), 0 -0.05em 0 var(--primary); }
    100% { text-shadow: -0.025em 0 0 var(--accent), -0.025em -0.025em 0 var(--secondary), -0.025em -0.05em 0 var(--primary); }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 85px, 0); }
    20% { clip: rect(63px, 9999px, 130px, 0); }
    40% { clip: rect(25px, 9999px, 5px, 0); }
    60% { clip: rect(76px, 9999px, 100px, 0); }
    80% { clip: rect(15px, 9999px, 170px, 0); }
    100% { clip: rect(50px, 9999px, 90px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(20px, 9999px, 30px, 0); }
    40% { clip: rect(90px, 9999px, 140px, 0); }
    60% { clip: rect(40px, 9999px, 60px, 0); }
    80% { clip: rect(10px, 9999px, 80px, 0); }
    100% { clip: rect(55px, 9999px, 120px, 0); }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* CTA Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-primary);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ============================================
   UTILITY CLASSES
   Reusable container and section styles
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Underline decoration for titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.accent {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   ABOUT SECTION
   Photo grid and bio
   ============================================ */
.about {
    background: var(--bg-secondary);
    padding-top: 8rem; /* Extra space from hero */
    margin-top: 0;
    position: relative;
    z-index: 2;
}

/* Gradient transition from hero */
.about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

/* Photo Grid Layout */
.about-photos {
    position: relative;
}

.photo-grid {
    position: relative;
    width: 100%;
    height: 500px;
}

/* Photo containers with rotation */
.photo-container {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.photo-container:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

.main-photo {
    width: 280px;
    height: 350px;
    top: 0;
    left: 0;
    transform: rotate(-3deg);
    z-index: 2;
}

.secondary-photo {
    width: 240px;
    height: 300px;
    bottom: 0;
    right: 20px;
    transform: rotate(3deg);
    z-index: 1;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Decorative frames behind photos */
.photo-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.5;
}

.secondary-photo .photo-frame {
    border-color: var(--secondary);
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
}

/* Glowing accent behind photos */
.photo-accent {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.highlight {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Stats counters */
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
}

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

/* ============================================
   SKILLS SECTION
   Progress bars and circular indicators
   ============================================ */
.skills {
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.skills-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Top gradient line decoration */
.skills-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.skills-category-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.skills-category-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* Linear Progress Bars */
.skill-bar-container {
    margin-bottom: 1.8rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.skill-name {
    color: var(--text-primary);
    font-weight: 600;
}

.skill-percent {
    color: var(--primary);
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0; /* Starts at 0, animated by JS */
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on progress bars */
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Circular Progress Indicators */
.circular-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    justify-items: center;
}

.circular-skill {
    position: relative;
    width: 120px;
    height: 120px;
}

.circle-svg {
    transform: rotate(-90deg); /* Start from top */
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283; /* 2 * PI * 45 (radius) */
    stroke-dashoffset: 283; /* Starts empty, filled by JS */
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Different colors for each circle */
.circular-skill:nth-child(2) .circle-progress { stroke: var(--secondary); }
.circular-skill:nth-child(3) .circle-progress { stroke: var(--accent); }
.circular-skill:nth-child(4) .circle-progress { stroke: #ffb86c; }

.circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circle-percent {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.circle-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.25rem;
    max-width: 80px;
    line-height: 1.2;
}

/* Tech Stack Tags */
.tech-stack {
    margin-top: 4rem;
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-tag-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: default;
}

.tech-tag-large:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.1);
    background: rgba(0, 255, 136, 0.05);
}

/* ============================================
   EXPOSURE SECTION
   Non-clickable experience cards
   ============================================ */
.exposure {
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.exposure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.exposure-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Left border animation */
.exposure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: var(--transition);
}

.exposure-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.exposure-card:hover::before {
    transform: scaleY(1);
}

.exposure-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

.exposure-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.exposure-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.exposure-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.exposure-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.exposure-tags span {
    padding: 0.3rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ============================================
   CERTIFICATES SECTION
   Clickable cards with modal popup
   ============================================ */
.certificates {
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certificate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.certificate-preview {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.certificate-badge {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.certificate-badge svg {
    width: 40px;
    height: 40px;
}

.certificate-card:hover .certificate-badge {
    transform: scale(1.1);
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

/* Overlay on hover */
.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.certificate-overlay span {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 5px;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-info {
    padding: 1.5rem;
}

.certificate-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cert-issuer {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* ============================================
   CERTIFICATE MODAL/LIGHTBOX
   Popup for viewing full certificates
   ============================================ */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    pointer-events: none; /* Allow clicks through when hidden */
}

/* Show modal when display is block */
.modal[style*="display: block"] {
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button (X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-secondary);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    border: 1px solid var(--border);
}

.close-modal:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding-right: 50px; /* Space for close button */
}

.modal-header p {
    color: var(--secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

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

.modal-details p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Verify Credential Button */
.btn-verify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-verify:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

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

/* ============================================
   PROJECTS SECTION
   GitHub repository cards
   ============================================ */
.projects {
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: block;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 136, 0.03) 100%);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

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

.folder-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.external-links {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.project-card:hover .external-links {
    color: var(--primary);
    transform: translate(2px, -2px);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.github-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-github svg {
    width: 20px;
    height: 20px;
}

.btn-github:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* ============================================
   CONTACT SECTION
   Contact info cards and terminal visual
   ============================================ */
.contact {
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-text p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    background: rgba(0, 255, 136, 0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    color: var(--primary);
    flex-shrink: 0;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.contact-details .value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Terminal visual in contact section */
.terminal-contact {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-contact .terminal-body {
    min-height: 200px;
}

.output {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.typing-animation {
    margin-top: 1rem;
    color: var(--primary);
    animation: typing 3s steps(30) infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--primary);
}

@keyframes typing {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 968px) {
    .about-content,
    .contact-content,
    .skills-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .photo-grid {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    .main-photo {
        width: 220px;
        height: 280px;
    }

    .secondary-photo {
        width: 180px;
        height: 220px;
        right: 40px;
    }

    .glitch {
        font-size: 2.5rem;
    }

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

    .circular-skills {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Mobile navigation */
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .projects-grid,
    .exposure-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        justify-content: center;
    }

    .photo-grid {
        height: 350px;
    }

    .main-photo {
        width: 180px;
        height: 220px;
        left: 20px;
    }

    .secondary-photo {
        width: 150px;
        height: 180px;
        right: 20px;
    }

    .hero {
        padding: 80px 5% 40px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
    }

    .terminal-window {
        transform: none;
    }

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

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

    .skills-column {
        padding: 1.5rem;
    }

    .circular-skill {
        width: 100px;
        height: 100px;
    }

    .circle-percent {
        font-size: 1.2rem;
    }

    .circle-label {
        font-size: 0.65rem;
    }

    .about {
        padding-top: 6rem;
    }
}

/* ============================================
   SCROLLBAR STYLING
   Custom scrollbar for webkit browsers
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   TEXT SELECTION
   Custom selection color
   ============================================ */
::selection {
    background: var(--primary);
    color: var(--bg-primary);
}