/* --- DARK MODE SHARED STYLES --- */
:root {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --border-color: #334155;
    --accent: #0ea5e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

header > p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover { 
    color: var(--primary);
}

/* --- HERO BANNER (Full Width Personal Background) --- */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background-image: url('./images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(15, 23, 42, 0.6), 
        rgba(15, 23, 42, 0.95)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-top: 15px;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3), 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* --- LINK TREE / SOCIALS --- */
.link-grid {
    display: grid;
    gap: 20px;
}

.link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -5px rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.link-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.link-text h3 { margin: 0; font-size: 1.25rem; color: var(--text-main); }
.link-text p { margin: 5px 0 0; color: var(--text-muted); font-size: 0.9rem; }

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child { border-bottom: none; }

.dropdown-content a:hover { 
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
    padding-left: 20px;
    transition: 0.2s;
}

/* --- PROJECTS GRID --- */
h2 { 
    font-size: 2.2rem; 
    margin: 60px 0 20px; 
    color: var(--text-main);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    font-weight: 800;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover { 
    box-shadow: 0 20px 30px -5px rgba(99, 102, 241, 0.3);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
}

.project-content { 
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.project-status {
    display: inline-block;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 700;
}

.status-active { 
    background-color: rgba(16, 185, 129, 0.15); 
    color: #34d399; 
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-retired { 
    background-color: rgba(239, 68, 68, 0.15); 
    color: #f87171; 
    border: 1px solid rgba(248, 113, 113, 0.4);
}

/* --- UTILITIES & BUTTONS --- */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover { 
    background: var(--primary-hover); 
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--primary); 
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    .container {
        max-width: 100%;
        padding: 30px 15px;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* --- FOOTER --- */
footer { 
    text-align: center; 
    padding: 40px 20px; 
    color: var(--text-muted); 
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
    font-weight: 500;
}

footer a { 
    color: var(--primary);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-hover);
}

/* --- TEXT UTILITIES --- */
p { color: var(--text-muted); line-height: 1.7; }
h3 { color: var(--text-main); }

.about-section p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- SPACING UTILITIES --- */
.section-spacer {
    margin-top: 50px;
}