:root {
    /* --- DATA CENTER THEME (Cyan/Navy) --- */
    --bg-dark: #0f161c;        /* Deepest Navy */
    --bg-card: rgba(22, 34, 46, 0.75); /* Semi-transparent dark blue/grey */
    --input-bg: rgba(13, 22, 31, 0.8);
    
    /* ACCENTS */
    --primary: #63b3cf;        /* Cyan/Teal (Matches server lights) */
    --secondary: #2c526d;      /* Muted Blue */
    
    /* TEXT */
    --text-main: #eef6f8;      /* Cool White */
    --text-muted: #8faab9;     /* Grey-Blue */
    --white: #ffffff;
    
    /* BORDERS & SHADOWS */
    --border-light: rgba(99, 179, 207, 0.2); /* Cyan tint border */
    
    --gradient-accent: linear-gradient(135deg, #63b3cf 0%, #a5d8ea 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4); 
    --shadow-glow: 0 0 25px rgba(99, 179, 207, 0.2); 
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0; line-height: 1.6; overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

/* --- VIDEO BACKGROUND --- */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--primary);
    display: flex;
    
    
}

.skill-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary));
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Matches the --bg-dark color with transparency to tint the video */
    background: rgba(15, 22, 28, 0.85); 
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--white); font-weight: 700; margin: 0; transition: color 0.3s; }
.gradient-text {
    background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 15px rgba(99, 179, 207, 0.4));
}
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* NAVIGATION */
.main-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(15, 22, 28, 0.85); /* Glassy dark navy */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--white); }
.logo .dot { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.95rem; color: var(--text-main); font-weight: 500; opacity: 0.8; }
.nav-links a:hover { color: var(--primary); opacity: 1; text-shadow: 0 0 8px rgba(99, 179, 207, 0.6); }

/* CONTROLS */
.nav-controls { display: flex; align-items: center; gap: 15px; margin-left: 20px; }
.lang-switch { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 0.9rem; }
.lang-opt {
    background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0; font-family: var(--font-heading); transition: 0.2s;
}
.lang-opt:hover { color: var(--white); }
.lang-opt.active { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.divider { color: var(--border-light); opacity: 0.5; }

/* RESUME DROPDOWN */
.resume-dropdown { position: relative; display: inline-block; }
.resume-btn-toggle {
    background: var(--primary); color: #0f161c; padding: 0.5rem 1rem; border-radius: 6px; 
    font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; 
    display: flex; align-items: center; gap: 5px; font-family: var(--font-heading);
    box-shadow: 0 0 15px rgba(99, 179, 207, 0.4);
    transition: transform 0.2s ease;
}
.resume-btn-toggle:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(99, 179, 207, 0.6); }
.resume-menu {
    position: absolute; top: 110%; right: 0; background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 8px; padding: 10px; min-width: 160px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;
    display: flex; flex-direction: column; gap: 5px; z-index: 2000;
}
.resume-dropdown:hover .resume-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.resume-menu a {
    color: var(--text-main); font-size: 0.9rem; padding: 8px 12px; border-radius: 6px;
    display: flex; justify-content: space-between; align-items: center; text-decoration: none; transition: 0.2s;
    background: transparent;
}
.resume-menu a:hover { background: rgba(99, 179, 207, 0.15); color: var(--primary); }
.resume-menu a i { font-size: 1.1rem; opacity: 0.7; }

/* Mobile Nav */
.mobile-menu-icon { display: none; background: none; border: none; font-size: 2rem; color: var(--primary); cursor: pointer; }
.mobile-nav-overlay {
    position: fixed; top: 0; right: -100%; width: 75%; height: 100%; background: var(--bg-card);
    backdrop-filter: blur(20px); border-left: 1px solid var(--border-light);
    z-index: 1001; transition: 0.4s; box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.mobile-nav-overlay.active { right: 0; }
.mobile-nav-content { display: flex; flex-direction: column; padding: 4rem 2rem; gap: 1.5rem; height: 100%; }
.mobile-resumes { display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.mobile-resumes a { font-size: 1rem; color: var(--text-muted); display: flex; justify-content: center; gap: 10px; }
.mobile-resumes a:hover { color: var(--primary); }
.mobile-controls { display: flex; gap: 10px; margin-top: 1rem; }
.mobile-controls button {
    padding: 8px 16px; border: 1px solid var(--border-light); background: transparent; color: var(--text-main); border-radius: 4px;
}
.close-mobile-nav { align-self: flex-end; background: none; border: none; font-size: 2rem; color: var(--primary); cursor: pointer; }

@media(max-width: 868px) {
    .nav-links, .nav-controls, .resume-dropdown { display: none; }
    .mobile-menu-icon { display: block; }
}

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.hero-text { max-width: 600px; }
.hero-badge { 
    color: var(--primary); font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; 
    display: inline-block; margin-bottom: 1rem; padding: 5px 12px; 
    border: 1px solid var(--border-light); border-radius: 20px; background: rgba(99, 179, 207, 0.1);
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-description { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 480px; }
.hero-btns { display: flex; gap: 1rem; }
.primary-btn {
    background: var(--primary); color: #0f161c; padding: 1rem 2rem; border-radius: 6px; font-weight: 700;
    border: none; cursor: pointer; box-shadow: 0 0 20px rgba(99, 179, 207, 0.4); transition: transform 0.2s;
}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(99, 179, 207, 0.6); }
.secondary-btn {
    border: 1px solid var(--border-light); color: var(--text-main); padding: 1rem 2rem; border-radius: 6px; font-weight: 600;
    backdrop-filter: blur(5px);
}
.secondary-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(99, 179, 207, 0.1); }

.image-container { position: relative; width: 300px; height: 300px; }
.image-container img { 
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%; 
    border: 2px solid var(--border-light); position: relative; z-index: 2; 
}
.glowing-circle {
    position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px solid var(--primary); border-radius: 50%; z-index: 1; opacity: 0.3;
    box-shadow: 0 0 30px var(--primary);
}
@media(max-width: 868px) {
    .hero { flex-direction: column-reverse; text-align: center; gap: 4rem; }
    .hero-text { margin: 0 auto; }
    .hero-btns { justify-content: center; }
}

/* SECTIONS */
.container { max-width: 1000px; margin: 0 auto; padding: 6rem 2rem; }
.container h2 { 
    font-size: 2rem; margin-bottom: 3rem; text-align: center; color: var(--white); 
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* TIMELINE */
.timeline-wrapper { position: relative; border-left: 2px solid var(--border-light); padding-left: 2rem; }
.timeline-item { margin-bottom: 3rem; position: relative; }
.timeline-dot {
    position: absolute; left: -2.6rem; top: 0; width: 16px; height: 16px; background: var(--bg-dark);
    border: 2px solid var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary);
}
.timeline-header h3 { font-size: 1.3rem; color: var(--white); }
.timeline-header .date { color: var(--primary); font-size: 0.9rem; font-weight: 600; text-shadow: 0 0 5px rgba(99, 179, 207, 0.5); }
.company { color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 600; }
.desc { margin-bottom: 1rem; font-style: italic; color: var(--text-main); }
.timeline-content ul { padding-left: 1rem; color: var(--text-muted); font-size: 0.95rem; }

/* GRIDS */
.skills-grid, .projects-grid, .cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.skill-card, .project-card, .cert-card {
    background: var(--bg-card); padding: 2rem; border-radius: 12px; transition: var(--transition);
    border: 1px solid var(--border-light); box-shadow: var(--shadow-card); backdrop-filter: blur(10px);
}
.skill-card:hover, .project-card:hover, .cert-card:hover {
    transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-glow);
}
.skill-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; text-shadow: 0 0 15px var(--primary); }

/* Language List */
.lang-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.lang-row { display: flex; align-items: center; font-size: 0.95rem; color: var(--white); }
.lang-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; margin: 0 10px; box-shadow: 0 0 5px var(--primary); }
.text-muted { color: var(--text-muted); font-size: 0.9rem; margin-left: auto; }

/* Cert Specifics */
.cert-card { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; }
.cert-icon-box {
    width: 50px; height: 50px; background: rgba(99, 179, 207, 0.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 1.5rem;
    border: 1px solid var(--border-light);
}
.cert-details h3 { font-size: 1.1rem; color: var(--white); }
.cert-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Projects */
.project-content { display: flex; flex-direction: column; height: 100%; }
.project-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
/* SVG Fix for CSS */
.project-icon svg { width: 45px; height: 45px; fill: var(--primary); filter: drop-shadow(0 0 5px var(--primary)); }

.link-text {
    margin-top: auto; background: none; border: none; color: var(--primary); cursor: pointer;
    font-weight: 600; display: flex; align-items: center; gap: 5px;
}

/* --- CONTACT SECTION (Redesigned) --- */
#contact {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.contact-pill:hover {
    background: rgba(99, 179, 207, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.contact-pill .icon-box {
    width: 35px;
    height: 35px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-left: 5px; }

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--shadow-glow);
    background: var(--bg-card);
}

.submit-btn {
    margin-top: 0.5rem;
    background: var(--primary);
    color: #0f161c;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-glow);
    filter: brightness(1.1);
}

@media (max-width: 868px) {
    .contact-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }
    .contact-info { text-align: center; }
    .contact-info h2 { text-align: center; }
}

/* FOOTER */
.main-footer { text-align: center; padding: 2rem; color: var(--text-muted); border-top: 1px solid var(--border-light); background: rgba(0,0,0,0.2); }

/* MODALS */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85);
    z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg-card); padding: 2rem; border-radius: 12px; width: 90%; max-width: 800px;
    max-height: 90vh; overflow-y: auto; position: relative; border: 1px solid var(--border-light);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.close-button { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.project-modal-image-wrapper { background: #000; height: 300px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; border: 1px solid var(--border-light); border-radius: 8px; }
.project-modal-image-wrapper img { max-width: 100%; max-height: 100%; }
.project-modal-controls { display: flex; justify-content: space-between; margin-top: 1rem; }
.control-btn { background: var(--bg-dark); border: 1px solid var(--border-light); color: var(--text-main); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.control-btn:hover { background: var(--primary); color: #000; }
