:root {
    /* --- DATA CENTER THEME (Deep Navy & Saturated Sky) --- */
    --bg-dark: #0f161c;        /* Deep Navy */
    --bg-card: rgba(22, 34, 46, 0.75); /* Dark Glass */
    --input-bg: rgba(13, 22, 31, 0.8);
    
    /* ACCENTS: Your Chosen Color */
    --primary: #38c8fa;        /* Saturated Sky Blue */
    --secondary: #1a8ab5;      /* Darker shade for depth */
    
    /* TEXT */
    --text-main: #eef6f8;      /* Cool White */
    --text-muted: #8faab9;     /* Grey-Blue */
    --white: #ffffff;
    
    /* BORDERS & SHADOWS */
    --border-light: rgba(56, 200, 250, 0.2); 
    
    --gradient-accent: linear-gradient(135deg, #38c8fa 0%, #82e0ff 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(56, 200, 250, 0.25); 
}

*, *::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;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(15, 22, 28, 0.85); /* Dark Blue Tint */
}

/* 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(56, 200, 250, 0.3));
}

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);
    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(56, 200, 250, 0.5); }

/* CONTROLS (Desktop) */
.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(56, 200, 250, 0.3);
    transition: transform 0.2s ease;
}
.resume-btn-toggle:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(56, 200, 250, 0.5); }

.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(56, 200, 250, 0.15); color: var(--primary); }
.resume-menu a i { font-size: 1.1rem; opacity: 0.7; }

/* --- MOBILE NAV (Full Screen) --- */
.mobile-menu-icon { 
    display: none; background: rgba(15, 22, 28, 0.6); border: 1px solid var(--border-light);
    border-radius: 8px; padding: 6px; font-size: 2rem; color: var(--primary); cursor: pointer; backdrop-filter: blur(5px);
    margin-left: auto; 
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 22, 28, 0.98); /* Solid dark glass */
    backdrop-filter: blur(20px);
    z-index: 2000;
    
    /* Animation setup */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-nav-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    padding-top: 1rem;
}

.mobile-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0; border-bottom: 1px solid var(--border-light); padding-bottom: 1rem;
    flex-shrink: 0;
}
.menu-title { font-size: 1.2rem; font-weight: 800; color: var(--text-main); letter-spacing: 2px; }

.close-mobile-nav {
    align-self: flex-end;
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--border-light);
    color: var(--text-muted); 
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.8rem; cursor: pointer; margin-left: auto;
}

/* Links */
.mobile-link {
    font-size: 1.4rem; 
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding: 15px 12px;
    display: flex; align-items: center; gap: 15px;
    width: 100%;
}
.mobile-link i { color: var(--primary); font-size: 1.2rem; text-shadow: 0 0 10px var(--primary); }

/* Footer Section in Menu */
.mobile-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.mobile-controls {
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 12px;
}

.mobile-controls button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    border-radius: 8px;
    font-size: 1rem;
}

.mobile-controls button.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(56, 200, 250, 0.3);
}

@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(56, 200, 250, 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 BUTTONS */
.hero-btns { display: flex; gap: 1rem; align-items: center; }

/* HERO RESUME DROPDOWN */
.hero-resume-wrapper { position: relative; }
.hero-resume-menu { 
    position: absolute; top: 110%; left: 0; width: 100%;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 8px; padding: 10px; min-width: 160px; box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px); 
    display: none; flex-direction: column; gap: 5px; z-index: 2000;
}
.hero-resume-menu.active { display: flex; animation: fadeIn 0.2s ease; }

.hero-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;
}
.hero-resume-menu a:hover { background: rgba(56, 200, 250, 0.15); color: var(--primary); }

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

.primary-btn {
    background: var(--primary); color: #0f161c; padding: 1rem 2rem; border-radius: 6px; font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer; box-shadow: 0 0 20px rgba(56, 200, 250, 0.4); transition: transform 0.2s;
    text-decoration: none; display: flex; align-items: center; gap: 5px; justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(56, 200, 250, 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); text-decoration: none; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}
.secondary-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(56, 200, 250, 0.1); }

/* --- UPDATED PROFILE IMAGE (PORTRAIT, DARK BLUE THIN CONTOUR, SUBTLE GLOW) --- */
.image-container { 
    position: relative; 
    width: 320px; 
    height: 420px; /* Portrait Shape */
}

.image-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 20px; /* Soft corners */
    position: relative; 
    z-index: 2; /* Sits on top of glow */
    
    /* VERY THIN DARK BLUE CONTOUR */
    border: 1px solid #0a4d8c;
}

.glowing-circle {
    display: block;
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 20px; /* Matches image soft corners */
    z-index: 1; /* Sits behind image */
    
    /* SUBTLE GLOW: Reduced spread (35px) and opacity (0.3) */
    box-shadow: 0 0 35px rgba(56, 200, 250, 0.3);
    
    background: transparent;
    border: none;
}

@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(56, 200, 250, 0.4);
}

/* TIMELINE */
.timeline-wrapper { 
    position: relative; 
    background: linear-gradient(to bottom, transparent 12px, var(--border-light) 12px);
    background-size: 2px 100%;
    background-repeat: no-repeat;
    background-position: left top;
    padding-left: 2rem; 
}

.timeline-item { margin-bottom: 3rem; position: relative; }

.timeline-dot {
    position: absolute; 
    left: calc(-2rem - 7px); 
    top: 12px; 
    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 10px rgba(56, 200, 250, 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); 
    border-radius: 12px; transition: var(--transition);
    border: 1px solid var(--border-light); box-shadow: var(--shadow-card); backdrop-filter: blur(10px);
}
.skill-card, .cert-card { padding: 2rem; } 

.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 10px 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(56, 200, 250, 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-card {
    padding: 0; 
    display: flex;
    flex-direction: column;
    overflow: visible; /* Changed from hidden so dropdown can escape */
}

.project-content { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    padding: 2rem; 
    flex: 1; 
}

.project-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.project-icon svg { width: 45px; height: 45px; fill: var(--primary); filter: drop-shadow(0 0 10px var(--primary)); }

.project-cover { 
    width: 100%; height: 200px; position: relative; overflow: hidden; 
    border-bottom: 1px solid var(--border-light); 
    border-top-left-radius: 12px; border-top-right-radius: 12px;
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .project-cover img { transform: scale(1.05); }

.project-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
}

.link-text { 
    background: rgba(56, 200, 250, 0.05); 
    border: 1px solid var(--primary); 
    color: var(--primary); 
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.link-text:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(56, 200, 250, 0.4);
    transform: translateY(-2px);
}

/* NEW DOCUMENTATION DROPDOWN STYLES */
.action-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.doc-dropdown-wrapper { 
    position: relative; 
}

.doc-menu { 
    position: absolute; 
    bottom: 120%; /* Opens upwards above the button */
    left: 0; 
    background: var(--bg-card); 
    border: 1px solid var(--border-light);
    border-radius: 8px; 
    padding: 10px; 
    min-width: 130px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px); 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    z-index: 2000;
}

.doc-menu.active { 
    display: flex; 
    animation: fadeIn 0.2s ease; 
}

.doc-menu a {
    color: var(--text-main); 
    font-size: 0.85rem; 
    padding: 8px 12px; 
    border-radius: 6px;
    display: flex; justify-content: space-between; align-items: center; 
    text-decoration: none; transition: 0.2s; background: transparent;
}

.doc-menu a:hover { 
    background: rgba(56, 200, 250, 0.15); 
    color: var(--primary); 
}

.github-btn { color: var(--text-muted); font-size: 1.5rem; transition: 0.2s; display: flex; align-items: center; }
.github-btn:hover { color: var(--white); transform: scale(1.1); text-shadow: 0 0 10px var(--white); }

/* CONTACT CARD */
#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; color: var(--white); }
.contact-info p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.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(56, 200, 250, 0.1); border-color: var(--primary); transform: translateX(5px); box-shadow: 0 0 15px rgba(56, 200, 250, 0.2); }
.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);
}

.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(2, 6, 23, 0.95);
    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 60px rgba(56, 200, 250, 0.15);
}
.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; }

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed; bottom: 20px; right: 20px; background: var(--primary); color: #000;
    width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:active { transform: scale(0.9); }

/* --- 📱 MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .container, .hero, .nav-content { padding-left: 1.2rem !important; padding-right: 1.2rem !important; width: 100% !important; }
    .hero { flex-direction: column-reverse; gap: 2rem; padding-top: 7rem; text-align: center; min-height: auto; }
    .hero-text { width: 100%; margin: 0; }
    .hero h1 { font-size: 2rem; line-height: 1.1; margin-bottom: 1rem; }
    .hero-description { font-size: 0.95rem; line-height: 1.5; max-width: 100%; margin-bottom: 2rem; }
    
    /* UPDATED MOBILE IMAGE SIZE (Portrait) */
    .image-container { width: 220px; height: 290px; margin: 0 auto; }
    
    /* HERO BUTTONS (SIDE-BY-SIDE FIX) */
    .hero-btns { display: flex; flex-direction: row; gap: 12px; width: 100%; justify-content: center; align-items: stretch; }
    .hero-resume-wrapper { flex: 1; }
    .resume-trigger { width: 100%; height: 100%; padding: 12px 0; font-size: 0.9rem; display: flex; justify-content: center; align-items: center; white-space: nowrap; }
    .secondary-btn { flex: 1; padding: 12px 0; font-size: 0.9rem; display: flex; justify-content: center; align-items: center; white-space: nowrap; }

    .skills-grid, .projects-grid, .cert-grid { grid-template-columns: 1fr; }
    .timeline-wrapper { padding-left: 1.5rem; margin-left: 0.5rem; }
    .timeline-item { margin-bottom: 2.5rem; }

    .timeline-dot {
        left: calc(-1.5rem - 7px);
    }
    
    /* PROJECT CARD FIX */
    .project-cover { height: 160px; }
    .project-content { padding-bottom: 1.5rem; }
    .project-card { height: auto; min-height: 0; }
    .project-actions { margin-top: 1rem; flex-wrap: nowrap; }
    
    /* Adjust buttons for mobile screens */
    .action-group { gap: 6px; flex-wrap: wrap; }
    .link-text { padding: 0.5rem 0.6rem; font-size: 0.85rem; gap: 4px; }

    .contact-card { padding: 1.5rem; grid-template-columns: 1fr; gap: 2rem; border-radius: 16px; }
    .contact-info h2 { font-size: 1.8rem; text-align: center; }
    #bg-video { height: 100vh; width: auto; min-width: 100vw; }
    .container { padding: 3rem 1.5rem; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.8rem; }
    /* Scales down even further for very small screens */
    .image-container { width: 180px; height: 240px; }
}

@media (hover: none) {
    .skill-card:hover, .project-card:hover, .cert-card:hover, .contact-item:hover, .contact-pill:hover {
        transform: none !important; box-shadow: var(--shadow-card) !important;
    }
    .primary-btn:active, .secondary-btn:active, .submit-btn:active {
        transform: scale(0.96); transition: transform 0.1s;
    }
}
