/* --- GLOBAL VARIABLES --- */
:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --border: #30363d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 17, 23, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-weight: 800; font-size: 1.2rem; color: var(--text-main); text-decoration: none; letter-spacing: 2px; }
.nav-links a { margin-left: 2rem; text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* --- HERO SPLIT --- */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 3rem auto 3rem auto;
    padding: 0 2rem;
}

.profile-pic {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.hero-right h1 {
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.hero-right h2 {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* --- 4-SQUARE VIDEO GRID --- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.video-section h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-left: 10px;
    border-left: 2px solid var(--accent);
}

.video-card {
    background: var(--surface-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* --- PORTFOLIO ITEMS (Kept separate to avoid breaking tabs) --- */
.bar-item {
    display: block;
    background: var(--surface-color);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.bar-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.15);
}

.bar-item h3 { color: var(--accent); margin-bottom: 0.5rem; }

/* --- RESUME & BUTTONS (REVERTED) --- */
.doc-container {
    margin-top: 2rem;
    height: 80vh;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn:hover { opacity: 0.9; }

/* --- FOOTER SECTION --- */
footer {
    background: var(--bg-color);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    gap: 1.5rem;
}

.footer-column { display: flex; flex-direction: column; }
.footer-column.socials { align-items: flex-end; }
.footer-column.contact { align-items: flex-start; }

.footer-column h4 { color: var(--text-main); font-size: 1.1rem; margin-bottom: 1.2rem; }

.footer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--surface-color);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none !important; 
    color: var(--text-main) !important;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
    min-width: 240px;
}

.footer-card:hover {
    border-color: var(--accent);
    background: #1c2128;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.15); 
}

.footer-card svg {
    width: 20px; height: 20px; fill: currentColor; filter: grayscale(100%); opacity: 0.6; transition: 0.3s;
}

.footer-card:hover svg { filter: grayscale(0%); opacity: 1; color: var(--accent); }

.copyright { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* --- TOAST --- */
#copy-toast {
    visibility: hidden; min-width: 220px; background-color: var(--surface-color); border: 1px solid var(--accent);
    color: var(--text-main); text-align: center; border-radius: 50px; padding: 12px 24px; position: fixed;
    z-index: 9999; left: 50%; bottom: 40px; transform: translateX(-50%); opacity: 0; transition: 0.4s;
}

#copy-toast.show { visibility: visible; opacity: 1; bottom: 60px; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 850px) {
    .hero-split { flex-direction: column; text-align: center; margin-top: 2rem; gap: 1rem; }
    .hero-right h1 { font-size: 2.5rem; }
    .profile-pic { width: 170px; height: 170px; }
    .grid-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; padding: 0 2rem; }
    .footer-column { align-items: center !important; text-align: center; }
    .footer-card { width: 100%; justify-content: center; }
}
