:root {
    --gold-color: #d4ae5e; 
    --light-grey: #dbdbdb;
    --dark-bg: #1a1a1a;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { background-color: var(--light-grey); overflow-x: hidden; }

/* --- NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 8%; position: fixed; width: 100%; z-index: 1000;
    background: var(--dark-bg); height: 70px;
}
.logo { font-size: 26px; font-weight: 900; color: var(--gold-color); text-decoration: none; }
.menu-toggle { display: none; } 

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { 
    text-decoration: none; color: #fff; font-weight: 600; font-size: 15px; 
    transition: var(--transition); cursor: pointer;
}
.nav-links a:hover { color: var(--gold-color); }

/* --- HERO SECTION --- */
.hero { position: relative; height: 100vh; width: 100%; display: flex; flex-direction: column; }
.gold-side {
    position: absolute; right: 0; top: 0; width: 55%; height: 100%;
    background-color: var(--gold-color); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%); z-index: 1;
}
.container { position: relative; z-index: 10; padding: 100px 10% 0 10%; width: 100%; }
.name { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; color: #000; margin-bottom: 20px; }

.titles-container { margin-bottom: 20px; }
.row-one { display: flex; gap: 20px; font-size: 18px; font-weight: 700; color: #444; margin-bottom: 8px; }
.row-one span:first-child::after { content: "|"; margin-left: 20px; color: var(--gold-color); }
.row-two { font-size: 18px; font-weight: 700; color: #444; }

/* --- ACTION BUTTONS --- */
.home-actions { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.action-btn {
    text-decoration: none; padding: 10px 20px; border-radius: 4px; font-weight: 700;
    font-size: 14px; transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.email { background: #fff; color: #333; border: 1px solid #ddd; }
.linkedin { background: #0077b5; color: #fff; }
.github { background: #333; color: #fff; }
.action-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); filter: brightness(1.1); }

.cv-btn {
    display: inline-flex; align-items: center; gap: 10px; background: var(--dark-bg);
    color: var(--gold-color); padding: 14px 28px; border-radius: 4px; text-decoration: none;
    font-weight: 700; transition: var(--transition); box-shadow: 4px 4px 0px var(--gold-color);
}
.cv-btn:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0px var(--gold-color); }

.image-section { position: absolute; right: 12%; bottom: 0; height: 85vh; z-index: 50; }
.profile-img { height: 100%; display: block; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); }

/* --- MODAL SYSTEM --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.92); overflow-y: auto; backdrop-filter: blur(10px);
}
.modal-content {
    background-color: var(--light-grey); margin: 2% auto; border-radius: 12px;
    width: 95%; max-width: 1200px; display: flex; position: relative; overflow: hidden; min-height: 85vh;
}
.modal-sidebar { width: 220px; background: var(--dark-bg); padding: 50px 20px; display: flex; flex-direction: column; gap: 10px; }
.modal-sidebar a { color: #888; text-decoration: none; font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 12px 15px; border-radius: 5px; transition: 0.3s; cursor: pointer;}
.modal-sidebar a:hover, .modal-sidebar a.active { color: var(--gold-color); background: rgba(255,255,255,0.05); transform: translateX(5px); }
.modal-sidebar a.active { border-right: 4px solid var(--gold-color); }

.modal-main { flex: 1; padding: 60px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-btn { position: absolute; right: 30px; top: 20px; font-size: 40px; cursor: pointer; color: #333; transition: 0.3s; }

.modal-header h2 { font-size: 2.2rem; text-transform: uppercase; font-weight: 900; color: #1a1a1a; }
.underline { width: 60px; height: 6px; background: var(--gold-color); margin: 10px 0 40px 0; }

/* --- GRID & CARDS --- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.skills-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); border: 1px solid transparent; }
.card:hover { transform: translateY(-10px); border-color: var(--gold-color); }

.skill-icon { font-size: 30px; color: var(--gold-color); margin-bottom: 15px; }

.img-wrapper { height: 200px; overflow: hidden; margin: -25px -25px 20px -25px; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.section-label { margin-bottom: 20px; font-size: 0.9rem; color: #888; text-transform: uppercase; }

.view-link { display: inline-block; color: var(--gold-color); text-decoration: none; font-weight: 800; font-size: 13px; text-transform: uppercase; margin-top: 15px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; color: white; cursor: pointer; font-size: 24px; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: var(--dark-bg);
        padding: 20px; text-align: center;
    }
    .nav-links.active { display: flex; }
    .hero { height: auto; padding-top: 100px; flex-direction: column; }
    .gold-side { width: 100%; height: 40%; top: auto; bottom: 0; clip-path: none; }
    .container { padding: 20px 8%; text-align: center; order: 1; position: relative; }
    .home-actions { justify-content: center; }
    .image-section { position: relative; right: auto; bottom: auto; height: 50vh; order: 2; display: flex; justify-content: center; }
    .profile-img { height: 100%; width: auto; }
    .row-one { flex-direction: column; gap: 5px; }
    .row-one span:first-child::after { content: ""; }
    .modal-content { flex-direction: column; }
    .modal-sidebar { width: 100%; flex-direction: row; height: auto; overflow-x: auto; padding: 15px; }
    .info-grid { grid-template-columns: 1fr; }
}