:root {
    --bg-color: #121212;
    --primary-color: #1a1a1a;
    --secondary-color: #2a2a2a;
    --text-color: #e0e0e0;
    --accent-color: #007bff;
    --hover-color: #007bff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
}

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

nav ul a {
    color: var(--text-color);
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul a:hover::after {
    width: 100%;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.accent-text {
    color: var(--accent-color);
    transition: opacity 0.5s ease-in-out;
    display: inline-block;
    vertical-align: bottom;
}

.accent-text::after {
    content: 'web developer.';
    display: block;
    height: 0;
    visibility: hidden;
    overflow: hidden;
}

#hero p {
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
    color: #a0a0a0;
}

.cta-button {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: rgba(26, 26, 26, 0.5);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -3px;
    background: linear-gradient(135deg, #FF69B4, #007bff);
    border-radius: 8px;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    background: rgba(26, 26, 26, 0.7);
    color: white;
}

.cta-button:hover::before {
    opacity: 0.75;
}


/* Content Sections */
.content-section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* About Me Section */
#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 2rem 0;
}

#about p {
    max-width: 700px;
    margin: 0 auto;
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.work-item {
    background-color: var(--primary-color);
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* GitHub Item Specific Styling */
.github-item {
    background-image: url('assets/GitHub.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.github-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.7); /* Dark overlay for text readability */
    transition: background-color 0.3s ease;
}

.github-item:hover::before {
    background-color: rgba(18, 18, 18, 0.5); /* Lighter overlay on hover */
}

.github-item {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Drone Item Specific Styling */
.drone-item {
    background-image: url('assets/Drone.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.drone-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.7); /* Dark overlay for text readability */
    transition: background-color 0.3s ease;
}

.drone-item:hover::before {
    background-color: rgba(18, 18, 18, 0.5); /* Lighter overlay on hover */
}

.drone-item {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.modal-container::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, #FF69B4, #007bff);
    border-radius: 24px; /* container radius + spread */
    filter: blur(15px);
    z-index: -1;
}

.modal-content {
    background: rgba(22, 22, 22, 0.7);
    backdrop-filter: blur(20px);
    position: relative;
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    color: var(--text-color);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-body {
    position: relative;
    z-index: 1;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

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

#modal-title {
    margin-top: 0;
    font-size: 2rem;
    color: white;
}

#modal-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

#modal-link {
    display: inline-block;
}

/* Contact Section */
#contact {
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav.container {
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust as needed */
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        text-align: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-list.active {
        display: flex;
    }

    nav ul {
        gap: 1.5rem;
        flex-direction: column;
    }

    #hero {
        align-items: flex-start;
        text-align: left;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .content-section {
        padding: 4rem 1rem;
    }

    #about {
        padding-top: 6rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }

    .modal-container {
        width: 100%;
        padding: 0 1rem;
    }

    .modal-container::before {
        inset: -8px 8px;
    }

    #modal-title {
        font-size: 1.5rem;
    }

    .close-button {
        top: 10px;
        right: 15px;
    }
}

/* Social Links */
.social-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--text-color);
    color: var(--bg-color);
    line-height: 46px; /* vertically center icon */
    text-align: center;
    margin: 0;
    font-size: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--accent-color);
    color: var(--text-color);
}