:root {
    --bg: #f5f7fb;
    --text: #333;
    --card: #ffffff;
    --primary: #0a2540;
}

.dark {
    --bg: #0f172a;
    --text: #e5e7eb;
    --card: #1e293b;
    --primary: #38bdf8;
}

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: 0.3s ease;
}


.top-bar {
    position: fixed;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 3000;
}

.top-bar button {
    background: var(--card);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a2540, #1e3c72);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.profile-img {
    width: 160px;
    border-radius: 50%;
    border: 4px solid white;
    margin: 0 auto 20px;
}

.contact span {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
}


.section {
    padding: 80px 12%;
}

.section.gray {
    background: rgba(0,0,0,0.04);
}

h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.skills-grid span {
    background: var(--card);
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
    overflow: hidden; 
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h4 {
    margin-top: 12px;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.project-card a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}


.project-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: transform 0.3s ease; 
}

.project-card:hover img {
    transform: scale(1.05);
}


.experience li {
    margin: 10px 0;
}


footer {
    background: #0a2540;
    color: white;
    text-align: center;
    padding: 25px;
}


.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


.menu-panel {
    position: fixed;
    top: 65px;
    left: 15px;
    background: var(--card);
    border-radius: 10px;
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    z-index: 2500;
}

.menu-panel a {
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.menu-panel.active {
    display: flex;
}


@media (max-width: 768px) {
    .section {
        padding: 60px 8%;
    }

    .project-card img {
        height: 150px;
    }

    .menu-panel {
        width: calc(100% - 30px);
    }
}
