/* ========================================
   STEPHEN SAM SIMON - MODERN THEME
   Glassmorphism & Modern Design
   ======================================== */

/* CSS Variables - Modern Theme (Dark Mode - Default) */
:root {
    --primary-dark: #0d1117;
    --primary-medium: #161b22;
    --primary-light: #21262d;
    --accent-primary: #58a6ff;
    --accent-secondary: #bc8cff;
    --accent-pink: #f778ba;
    --accent-green: #3fb950;
    --accent-orange: #d29922;
    --gradient-main: linear-gradient(135deg, #58a6ff 0%, #bc8cff 50%, #f778ba 100%);
    --gradient-dark: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --bg-dark: #0d1117;
    --bg-card: rgba(22, 27, 34, 0.8);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: rgba(240, 246, 252, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(88, 166, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(22, 27, 34, 0.7);
}

/* Light Mode Variables - Modern Cream & White Theme */
.light-mode {
    --primary-dark: #FFFCF5;
    --primary-medium: #FFF8E7;
    --primary-light: #FFF3D9;
    --accent-primary: #B8860B;
    --accent-secondary: #8B4513;
    --accent-pink: #D4A574;
    --accent-green: #6B8E6B;
    --accent-orange: #CD853F;
    --gradient-main: linear-gradient(135deg, #B8860B 0%, #8B4513 50%, #D4A574 100%);
    --gradient-dark: linear-gradient(180deg, #FFFCF5 0%, #FFF8E7 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 231, 0.9) 100%);
    --bg-dark: #FFFCF5;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #3D3D3D;
    --text-secondary: #5D5D5D;
    --text-muted: #8B8B8B;
    --border-color: rgba(61, 61, 61, 0.1);
    --shadow-sm: 0 2px 4px rgba(61, 61, 61, 0.04);
    --shadow-md: 0 4px 12px rgba(61, 61, 61, 0.08);
    --shadow-lg: 0 10px 30px rgba(61, 61, 61, 0.1);
    --shadow-glow: 0 0 40px rgba(184, 134, 11, 0.1);
    --glass: rgba(255, 255, 255, 0.9);
}

/* Global transition for theme switching */
body {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* BACKGROUND EFFECTS */
.bg-gradient { background: var(--gradient-dark); }

.grid-pattern {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(88, 166, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(88, 166, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; pointer-events: none; z-index: -1;
}

.glow-orb {
    position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: -1;
}

.glow-orb-1 { width: 600px; height: 600px; background: rgba(88, 166, 255, 0.15); top: -200px; left: -200px; animation: float 20s ease-in-out infinite; }
.glow-orb-2 { width: 500px; height: 500px; background: rgba(188, 140, 255, 0.12); bottom: -150px; right: -150px; animation: float 25s ease-in-out infinite reverse; }

@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }

/* NAVIGATION */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0;
    background: rgba(13, 17, 23, 0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color); transition: var(--transition);
}

.navbar.scrolled { padding: 10px 0; box-shadow: var(--shadow-lg); }

.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }

.logo-icon {
    width: 36px; height: 36px; background: var(--gradient-main); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem;
}

.logo span { display: block; }
@media (max-width: 600px) { .logo span { display: none; } }

.nav-links { display: flex; list-style: none; gap: 4px; }

.nav-links a {
    color: var(--text-secondary); padding: 8px 14px; border-radius: 8px; font-weight: 500;
    font-size: 0.9rem; transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: rgba(88, 166, 255, 0.1); }
.nav-links a.active { color: var(--accent-primary); }

.hamburger { display: none; color: var(--text-primary); font-size: 1.3rem; cursor: pointer; background: none; border: none; padding: 8px; }

/* Mobile Navigation - Always Visible and Properly Spaced */
@media (max-width: 900px) {
    .nav-links { 
        display: flex !important; 
        position: static; 
        flex-direction: row; 
        width: auto; 
        height: auto; 
        background: transparent; 
        padding: 0; 
        gap: 2px; 
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .nav-links a { 
        padding: 6px 10px; 
        font-size: 0.75rem; 
        white-space: nowrap;
    }
    .hamburger { display: none; }
}

@media (max-width: 600px) {
    .nav-links { 
        gap: 2px 4px; 
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        padding: 8px 0;
    }
    .nav-links li {
        flex: 0 0 auto;
    }
    .nav-links a { 
        padding: 6px 8px; 
        font-size: 0.65rem; 
    }
    .navbar { padding: 8px 0; min-height: 80px; }
    .logo { font-size: 0.9rem; }
    .logo-icon { display: none; }
}

@media (max-width: 400px) {
    .nav-links {
        gap: 2px;
    }
    .nav-links a {
        padding: 5px 6px;
        font-size: 0.65rem;
    }
    .logo { font-size: 0.9rem; }
}

/* HERO SECTION */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 80px; position: relative;
}

.hero-container {
    display: flex; align-items: center; gap: 60px; max-width: 1100px; width: 100%;
}

.hero-text { flex: 1; text-align: left; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-image img {
    max-width: 100%; height: auto; max-height: 500px; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

.hero-content { max-width: 800px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(88, 166, 255, 0.1); border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; color: var(--accent-primary); margin-bottom: 24px;
}

.hero h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.1; }
.hero h1 .name { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero .tagline { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }

.btn {
    padding: 12px 28px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary { background: var(--gradient-main); color: var(--bg-dark); border: none; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(88, 166, 255, 0.3); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent-primary); }

.hero-stats { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--accent-primary); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); }

/* SECTIONS */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.section-title { font-size: 2.2rem; text-align: center; margin-bottom: 40px; position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--gradient-main); margin: 16px auto 0; border-radius: 3px; }

/* CARDS */
.glass-card {
    background: var(--gradient-card); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 16px; padding: 28px;
    transition: var(--transition);
    text-align: center;
}
.glass-card:hover { transform: translateY(-5px); border-color: rgba(88, 166, 255, 0.3); box-shadow: var(--shadow-glow); }

.card-icon {
    width: 54px; height: 54px; background: rgba(88, 166, 255, 0.1); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.card-icon i { font-size: 1.3rem; color: var(--accent-primary); }
.card-icon.purple i { color: var(--accent-secondary); }
.card-icon.pink i { color: var(--accent-pink); }
.card-icon.green i { color: var(--accent-green); }
.card-icon.orange i { color: var(--accent-orange); }

/* GRID LAYOUTS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* RESPONSIVE GRID */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero-container { flex-direction: column; gap: 40px; text-align: center; }
    .hero-text { text-align: center; }
    .hero-image { order: -1; }
    .hero-image img { max-height: 350px; }
    .hero .tagline { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-image { order: -1; margin-bottom: 100px; }
    .hero-image img { max-height: 280px; }
    .hero-stats { gap: 30px; }
    .stat-number { font-size: 1.8rem; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .section-title, .section-header h2 { font-size: 1.8rem; }
    
    /* Hide hero image on small devices */
    .hero-image { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
    .hero .tagline { font-size: 1rem; }
    .btn { padding: 10px 22px; font-size: 0.9rem; }
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 768px) { 
    .about-grid { grid-template-columns: 1fr; }
    .about-grid .profile-card { order: -1; }
}

.about-content { color: var(--text-secondary); line-height: 1.8; }
.about-content p { margin-bottom: 16px; }
.about-content .btn { margin-top: 10px; }

.profile-card {
    background: var(--gradient-card); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 20px; padding: 32px; text-align: center;
}
.profile-image { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px; border: 3px solid var(--accent-primary); overflow: hidden; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.profile-card .title { color: var(--accent-primary); font-weight: 500; margin-bottom: 20px; }
.profile-info { text-align: left; }
.profile-info .item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
.profile-info .item:last-child { border-bottom: none; }
.profile-info .item i { color: var(--accent-primary); width: 18px; }
.profile-info .item a { color: var(--text-secondary); }

/* EXPERIENCE TIMELINE */
.experience-timeline { max-width: 750px; margin: 0 auto; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 24px; }
.timeline-marker { width: 44px; height: 44px; background: var(--gradient-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.timeline-marker i { color: var(--bg-dark); font-size: 1rem; }
.timeline-content { flex: 1; background: var(--gradient-card); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: 14px; padding: 20px; transition: var(--transition); }
.timeline-content:hover { border-color: rgba(88, 166, 255, 0.3); transform: translateX(6px); }
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline-content .company { color: var(--accent-primary); font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.timeline-content .date { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 12px; }
.timeline-content ul { list-style: none; }
.timeline-content li { color: var(--text-secondary); padding: 4px 0; padding-left: 16px; position: relative; font-size: 0.9rem; }
.timeline-content li::before { content: '→'; position: absolute; left: 0; color: var(--accent-primary); }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-category {
    background: var(--gradient-card); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 14px; padding: 24px;
}
.skill-category h3 { font-size: 1.1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.skill-category h3 i { color: var(--accent-primary); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
    background: rgba(88, 166, 255, 0.1); border: 1px solid rgba(88, 166, 255, 0.2);
    color: var(--text-primary); padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; transition: var(--transition);
}
.skill-tag:hover { background: rgba(88, 166, 255, 0.2); }

/* PROJECTS */
.project-full-card, .project-card {
    background: var(--gradient-card); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 18px; padding: 32px; margin-bottom: 24px;
    transition: var(--transition);
}
.project-full-card:hover, .project-card:hover { border-color: rgba(88, 166, 255, 0.3); transform: translateY(-5px); }
.project-type { color: var(--accent-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; margin-bottom: 8px; }
.project-full-card h2, .project-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.project-full-card p, .project-card p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; font-size: 0.95rem; }
.project-tech, .project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-tech span, .project-tags span {
    background: rgba(188, 140, 255, 0.1); border: 1px solid rgba(188, 140, 255, 0.2);
    color: var(--text-primary); padding: 5px 12px; border-radius: 6px; font-size: 0.8rem;
}

/* CERTIFICATIONS */
.cert-card {
    background: var(--gradient-card); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 14px; padding: 22px; text-align: center;
    transition: var(--transition);
}
.cert-card:hover { transform: translateY(-5px); border-color: rgba(247, 120, 186, 0.3); }
.cert-card .cert-icon {
    width: 60px; height: 60px; background: rgba(247, 120, 186, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.cert-card .cert-icon i { font-size: 1.5rem; color: var(--accent-pink); }
.cert-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cert-card .issuer { color: var(--accent-primary); font-weight: 500; font-size: 0.85rem; }
.cert-card .date { color: var(--text-muted); font-size: 0.8rem; margin-top: 6px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
@media (max-width: 768px) { 
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { margin-top: 20px; text-align: center; }
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--gradient-card); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 14px; padding: 18px;
    transition: var(--transition);
}
.contact-item:hover { border-color: rgba(88, 166, 255, 0.3); transform: translateX(6px); }
.contact-item .icon { width: 44px; height: 44px; background: rgba(88, 166, 255, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .icon i { font-size: 1.1rem; color: var(--accent-primary); }
.contact-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--text-secondary); font-size: 0.9rem; }

.contact-form {
    background: var(--gradient-card); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color); border-radius: 18px; padding: 32px;
}
.contact-form h3 { margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; color: var(--text-primary); font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; background: rgba(13, 17, 23, 0.5);
    border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary);
    font-size: 0.95rem; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-primary); background: rgba(13, 17, 23, 0.8); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* PAGE HEADER */
.page-header { padding: 140px 0 50px; text-align: center; background: var(--gradient-dark); }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }

/* EXPERIENCE TOTAL */
.experience-total {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 16px 32px;
    border-radius: 16px;
    margin-bottom: 20px;
}
.experience-total .total-years {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.experience-total .total-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   THEME TOGGLE SWITCH
   ======================================== */

/* Theme Toggle Button */
.theme-toggle {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-left: 10px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

/* Sun icon for light mode */
.theme-toggle .fa-sun {
    color: #f0c14b;
}

/* Moon icon for dark mode */
.theme-toggle .fa-moon {
    color: #58a6ff;
}

/* Toggle animation */
.theme-toggle:active i {
    transform: rotate(360deg);
}

/* Navbar container adjustments for toggle */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-left: 8px;
    }
}

/* Light mode specific adjustments */
.light-mode .grid-pattern {
    background-image: linear-gradient(rgba(184, 134, 11, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(184, 134, 11, 0.06) 1px, transparent 1px);
}

.light-mode .glow-orb-1 {
    background: rgba(184, 134, 11, 0.12);
}

.light-mode .glow-orb-2 {
    background: rgba(139, 69, 19, 0.08);
}

.light-mode .glass-card {
    background: var(--gradient-card);
}

.light-mode .modal-content {
    background-color: var(--primary-medium);
}

.light-mode .form-group input, 
.light-mode .form-group textarea {
    background: rgba(255, 252, 245, 0.8);
    border-color: var(--border-color);
}

.light-mode .form-group input:focus, 
.light-mode .form-group textarea:focus {
    background: #FFFCF5;
    border-color: var(--accent-primary);
}

/* Light mode navbar */
.light-mode .navbar {
    background: rgba(255, 252, 245, 0.95);
}

.light-mode .nav-links a:hover, 
.light-mode .nav-links a.active {
    background: rgba(184, 134, 11, 0.1);
}

.light-mode .nav-links a.active {
    color: var(--accent-primary);
}

/* Light mode hero badge */
.light-mode .hero-badge {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.3);
    color: var(--accent-primary);
}

/* Light mode button hover */
.light-mode .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.3);
}

.light-mode .btn-secondary:hover {
    background: rgba(184, 134, 11, 0.05);
    border-color: var(--accent-primary);
}

/* Light mode skill tags */
.light-mode .skill-tag {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.2);
}

.light-mode .skill-tag:hover {
    background: rgba(184, 134, 11, 0.2);
}

/* Light mode project tags */
.light-mode .project-tech span, 
.light-mode .project-tags span {
    background: rgba(139, 69, 19, 0.1);
    border-color: rgba(139, 69, 19, 0.2);
}

/* Light mode card icon backgrounds */
.light-mode .card-icon {
    background: rgba(184, 134, 11, 0.1);
}

/* Light mode timeline */
.light-mode .timeline-content:hover {
    border-color: rgba(184, 134, 11, 0.3);
}

/* Light mode contact item */
.light-mode .contact-item:hover {
    border-color: rgba(184, 134, 11, 0.3);
}

.light-mode .contact-item .icon {
    background: rgba(184, 134, 11, 0.1);
}

/* Reduced motion for theme toggle */
@media (prefers-reduced-motion: reduce) {
    .theme-toggle i {
        transition: none;
    }
}

/* FOOTER */
footer { background: var(--primary-dark); border-top: 1px solid var(--border-color); padding: 30px 0; text-align: center; }
footer p { color: var(--text-muted); margin-bottom: 14px; }
.footer-social { display: flex; justify-content: center; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; background: var(--primary-light); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--text-secondary); 
    transition: var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.footer-social a:hover { 
    background: var(--accent-primary); 
    color: var(--bg-dark);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.4);
}

/* Contact Page Social Icons */
.contact-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.contact-social a {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.contact-social a:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.4);
}

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.wow { opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) { .wow { animation: none; opacity: 1; } * { animation: none !important; transition: none !important; } }

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--primary-medium);
    margin: 2% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-content iframe {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 20px;
    }
    .modal-content iframe {
        height: 400px;
    }
}

/* ========================================
   SKELETON LOADING STYLES
   ======================================== */

/* Skeleton Animation Keyframes */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Base Skeleton Element */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(88, 166, 255, 0.1) 25%,
        rgba(88, 166, 255, 0.2) 50%,
        rgba(88, 166, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

/* Dark Theme Skeleton */
.skeleton-dark {
    background: linear-gradient(
        90deg,
        rgba(88, 166, 255, 0.15) 25%,
        rgba(88, 166, 255, 0.25) 50%,
        rgba(88, 166, 255, 0.15) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

/* Skeleton Text */
.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

/* Skeleton Title */
.skeleton-title {
    height: 32px;
    width: 70%;
    margin-bottom: 12px;
    border-radius: 8px;
}

/* Skeleton Heading */
.skeleton-heading {
    height: 24px;
    width: 50%;
    margin-bottom: 10px;
    border-radius: 6px;
}

/* Skeleton Circle (for avatars) */
.skeleton-circle {
    border-radius: 50%;
}

/* Skeleton Card */
.skeleton-card {
    height: 200px;
    border-radius: 16px;
    margin-bottom: 20px;
}

/* Skeleton Button */
.skeleton-button {
    height: 48px;
    width: 140px;
    border-radius: 10px;
}

/* Skeleton Badge */
.skeleton-badge {
    height: 36px;
    width: 180px;
    border-radius: 18px;
}

/* Skeleton Image */
.skeleton-image {
    height: 100%;
    width: 100%;
    border-radius: inherit;
}

/* Skeleton Tag */
.skeleton-tag {
    height: 36px;
    width: 90px;
    border-radius: 18px;
    display: inline-block;
    margin: 4px;
}

/* Skeleton Row */
.skeleton-row {
    height: 70px;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
}

/* Timeline Skeleton */
.skeleton-timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.skeleton-timeline-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-timeline-content {
    flex: 1;
    padding: 20px;
    border-radius: 14px;
}

/* Form Skeleton */
.skeleton-input {
    height: 50px;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
}

.skeleton-textarea {
    height: 120px;
    width: 100%;
    border-radius: 8px;
}

/* Grid Skeleton (for card grids) */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skeleton-grid-item {
    height: 220px;
    border-radius: 16px;
}

/* About Grid Skeleton */
.skeleton-about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.skeleton-about-content {
    padding: 20px;
    border-radius: 16px;
}

.skeleton-profile-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

.skeleton-section-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .skeleton-about-grid {
        grid-template-columns: 1fr;
    }
    .skeleton-section-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-section-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Stats Skeleton */
.skeleton-stats {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.skeleton-stat-item {
    text-align: center;
}

.skeleton-stat-number {
    height: 48px;
    width: 80px;
    margin-bottom: 8px;
    border-radius: 8px;
    margin: 0 auto 8px;
}

.skeleton-stat-label {
    height: 18px;
    width: 100px;
    border-radius: 4px;
    margin: 0 auto;
}

/* Hero Skeleton */
.skeleton-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
}

.skeleton-hero-content {
    text-align: center;
    max-width: 800px;
}

.skeleton-hero-badge {
    height: 40px;
    width: 220px;
    margin: 0 auto 24px;
    border-radius: 20px;
}

.skeleton-hero-title {
    height: 64px;
    width: 450px;
    margin: 0 auto 20px;
    border-radius: 10px;
}

.skeleton-hero-tagline {
    height: 28px;
    width: 350px;
    margin: 0 auto 40px;
    border-radius: 6px;
}

.skeleton-hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 50px;
}

.skeleton-hero-btn {
    height: 48px;
    width: 150px;
    border-radius: 10px;
}

/* Profile Card Skeleton */
.skeleton-profile {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.skeleton-profile-name {
    height: 28px;
    width: 200px;
    margin: 0 auto 10px;
    border-radius: 6px;
}

.skeleton-profile-title {
    height: 20px;
    width: 180px;
    margin: 0 auto 20px;
    border-radius: 4px;
}

.skeleton-profile-item {
    height: 44px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Skill Tags Skeleton */
.skeleton-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skeleton-skill-tag {
    height: 40px;
    width: 110px;
    border-radius: 6px;
}

/* Project Card Skeleton */
.skeleton-project {
    display: flex;
    gap: 28px;
    padding: 32px;
    border-radius: 18px;
    margin-bottom: 24px;
}

.skeleton-project-icon {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    flex-shrink: 0;
}

.skeleton-project-content {
    flex: 1;
}

.skeleton-project-title {
    height: 28px;
    width: 60%;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-project-type {
    height: 20px;
    width: 140px;
    margin-bottom: 14px;
    border-radius: 4px;
}

.skeleton-project-desc {
    height: 18px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-project-tags {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.skeleton-project-tag {
    height: 32px;
    width: 80px;
    border-radius: 6px;
}

/* Section Skeleton */
.skeleton-section {
    padding: 80px 0;
}

.skeleton-section-title {
    height: 40px;
    width: 280px;
    margin: 0 auto 40px;
    border-radius: 8px;
}

.skeleton-section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skeleton-section-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skeleton-section-card {
    height: 200px;
    border-radius: 16px;
}

/* Loading State - Hide actual content initially */
.content-loading .content-hidden {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.content-loaded .content-hidden {
    opacity: 1;
}

/* Skeleton Visibility Control */
.skeleton-wrapper {
    position: relative;
}

.skeleton-wrapper .skeleton {
    display: block;
}

.skeleton-wrapper.content-loaded .skeleton {
    display: none;
}

.skeleton-wrapper .actual-content {
    display: none;
}

.skeleton-wrapper.content-loaded .actual-content {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Glass Card Skeleton */
.skeleton-glass-card {
    background: rgba(88, 166, 255, 0.05);
    border: 1px solid rgba(88, 166, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
}

.skeleton-glass-card .card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    margin-bottom: 16px;
}

/* Contact Form Skeleton */
.skeleton-contact-form {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 18px;
    padding: 32px;
}

/* Responsive Skeleton */
@media (max-width: 992px) {
    .skeleton-hero-title {
        width: 350px;
        height: 52px;
    }
    
    .skeleton-hero-tagline {
        width: 280px;
    }
    
    .skeleton-section-grid,
    .skeleton-section-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-hero-title {
        width: 280px;
        height: 45px;
    }
    
    .skeleton-hero-tagline {
        width: 220px;
    }
    
    .skeleton-section-grid,
    .skeleton-section-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .skeleton-project {
        flex-direction: column;
    }
    
    .skeleton-project-icon {
        width: 60px;
        height: 60px;
    }
    
    .skeleton-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
        background: rgba(88, 166, 255, 0.15);
    }
    
    .skeleton-dark {
        animation: none;
        background: rgba(88, 166, 255, 0.2);
    }
}

/* Skills Grid Skeleton */
.skeleton-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .skeleton-skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Skeleton */
.skeleton-projects {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Contact Grid Skeleton */
.skeleton-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.skeleton-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 768px) {
    .skeleton-contact-grid {
        grid-template-columns: 1fr;
    }
}

