/* ===== GLOBAL VARIABLES ===== */
:root {
    --primary-color: #1902ad;
    --secondary-color: #6b42c8;
    --accent-color: #c27be4;
    --background-light: #f8f9fa;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.7;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    background-color: #ffffff;
    padding: 0.05rem 0; /* reduced from 1rem to shrink height ~3mm */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.navbar .logo img {
    height: 85px;
    width: auto;
    margin-left: 0px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ===== HERO VIDEO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44,62,80,0.6);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 50px;
    color: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #5f6dc8;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Text and lists spacing */
.section p, .section ul, .section ol, .card p {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    padding: 0 15px;
}

.section ul {
    list-style: disc;
    padding-left: 40px;
}

.section ul li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.bg-light {
    background-color: rgba(248, 249, 250, 0.95);
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--white-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-title {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ===== CONTACT ===== */
#contact p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    padding: 0 15px;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--secondary-color);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 30px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-content {
        padding: 0 30px;
    }
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        padding: 0 30px;
    }
    .skills-wrapper, .card-grid {
        grid-template-columns: 1fr;
    }
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-menu {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    .nav-menu a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-content {
        padding: 0 15px;
    }
    .section-title {
        font-size: 2rem;
    }
}
