:root {
    --bg-color: #0d0d0d;
    --text-color: #f5f5f5;
    --card-bg: #1a1a1a;
    --accent: #007BFF;
}
body.light-mode {
    --bg-color: #ffffff;
    --text-color: #111111;
    --card-bg: #f0f0f0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background: var(--card-bg);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
}

.section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

h2 {
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.profile-image img {
    width: 150px;
    height: 150px;   /* force equal height */
    border-radius: 50%; /* rounds into a circle */
    object-fit: cover;  /* keeps aspect ratio while filling the circle */
}

.about-text {
    flex: 1;
}

.btn {
    background-color: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.project-carousel {
    position: relative;
    overflow: hidden;
}

.project-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    width: 250px;
    text-align: center;
    cursor: pointer;              /* 👆 makes mouse a hand */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth hover */
}

.project-card:hover {
    transform: scale(1.05);       /* 👆 enlarges slightly */
    box-shadow: 0 8px 20px rgba(0,0,0,0.4); /* subtle shadow */
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.arrow-left { left: 0; }
.arrow-right { right: 0; }

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
}

.skills .skill-bar {
    margin-bottom: 15px;
}

.bar {
    height: 10px;
    background-color: var(--accent);
    border-radius: 5px;
}

.bar-100 { width: 100%; }
.bar-90 { width: 90%; }
.bar-80 { width: 80%; }
.bar-70 { width: 70%; }
.bar-60 { width: 60%; }
.bar-50 { width: 50%; }
.bar-40 { width: 40%; }
.bar-30 { width: 30%; }
.bar-20 { width: 20%; }
.bar-10 { width: 10%; }

.icon-grid {
    display: flex;
    gap: 20px;
}

.icon {
    font-size: 40px;
}

.hobby-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hobby-list li {
    margin: 6px 0;
    font-size: 16px;
    color: var(--text-color);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.hobby-list li:hover {
    color: var(--accent);
    border-color: var(--text-color);
}


.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 15px; /* space before the text details */
}

.social-icons a {
    font-size: 28px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent);
}

.contact-details p {
    margin: 5px 0;
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--accent);
}


.toggle-mode {
    background: none;
    color: var(--text-color);
    border: 2px solid var(--accent);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        display: none;
        background-color: var(--card-bg);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2x2 {
        grid-template-columns: 1fr;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;          /* limit height */
    overflow-y: auto;          /* scroll if content too tall */
    text-align: center;
    position: relative;
}


.modal-content img, .modal-content video {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
}

.close:hover {
    color: var(--accent);
}

