/* ===========================
   Theme Variables
=========================== */
:root {
    --deep-purple: #7B4B94;
    --soft-purple: #BDA0CB;
    --dark-bg: #121212;
    --light-text: #E0E0E0;
    --mid-gray: #AAA;
}

:root.light-mode {
    --dark-bg: #ffffff;
    --light-text: #121212;
    --soft-purple: #8b4d9a;
    --mid-gray: #555;
}

/* ===========================
   Global Styles
=========================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--light-text);
    font-family: 'Inter', sans-serif;
    margin-top: 0;
}

/* ===========================
   Banner
=========================== */
.banner-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.banner-img {

    width: 100%;
    height: auto;
    display: block;
}

.banner-video {
    width: 50%;
    height: auto;
    display: block;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.banner-container:hover .banner-video,
.banner-container:active .banner-video {
    opacity: 1;
}

.navbar img {
    height: 8rem;
    width: auto;
    margin-right: 1rem;
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

/* ===========================
   Text Highlighting
=========================== */
.highlight-purple {
    color: var(--soft-purple);
}

/* ===========================
   Cards
=========================== */
.card,
.skill-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(123, 75, 148, 0.4);
    padding: 1.5rem;
    margin: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(123, 75, 148, 0.5);
}

/* ===========================
   Buttons
=========================== */
.btn-main,
.btn-primary {
    background-color: var(--soft-purple);
    color: var(--dark-bg);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(189, 160, 203, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover,
.btn-main:focus,
.btn-primary:hover,
.btn-primary:focus {
    background-color: #a17dbb;
    color: #fff;
    transform: translateY(-2px);
}

.btn-main:active,
.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(189, 160, 203, 0.3);
}

.btn-main:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid var(--soft-purple);
    outline-offset: 2px;
}

/* ===========================
   Focus Styles
=========================== */
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--soft-purple);
    outline-offset: 2px;
}

/* ===========================
   Typography
=========================== */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subheading {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--mid-gray);
    margin-bottom: 2rem;
    text-align: center;
}

/* ===========================
   Skills Section
=========================== */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.skill-card {
    text-align: center;
    width: 250px;
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 1rem;
    color: var(--mid-gray);
}

/* ===========================
   Utility Classes
=========================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.hidden {
    display: none;
}

/* ===========================
   Media Queries
=========================== */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .section-heading {
        font-size: 2rem;
    }

    .section-subheading {
        font-size: 1rem;
    }

    .skill-card {
        width: 90%;
    }

    .navbar img {
        height: 5rem;
    }
}


/* ===========================
   Dark/Light Mode Support
=========================== */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .navbar {
    background-color: #1e1e1e !important;
    color: #eee;
}

.dark-mode .card,
.dark-mode .skill-card {
    background-color: #222;
    color: #eee;
}