/* Fonts */
@font-face {
    font-family: 'Poppins';
    src: url('./assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Base Styles and CSS Variables */
:root {
    --primary-color: #0a192f;
    --secondary-color: #172a45;
    --accent-color: #64ffda;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.secondary-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: var(--transition);
    padding: 20px 0;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.menu-btn__burger {
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 5px;
    position: relative;
    transition: var(--transition);
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: var(--transition);
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Enhanced Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 50px;
    overflow: hidden;
}

/* Background Grid Pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            rgba(100, 255, 218, 0.03) 1px,
            transparent 1px
    ),
    linear-gradient(
            90deg,
            rgba(100, 255, 218, 0.03) 1px,
            transparent 1px
    );
    background-size: 40px 40px;
    z-index: -2;
}

/* Floating Code Snippets */
.hero-section::after {
    content: 'let code = "fly"; function debug() { console.log("dev"); }';
    position: absolute;
    font-family: 'Courier New', monospace;
    color: rgba(100, 255, 218, 0.2);
    font-size: 1.2rem;
    top: 20%;
    left: 10%;
    animation: floatCode 20s infinite linear;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
    padding: 2rem; /* Added padding for better spacing */
    border-radius: 8px; /* Slight rounding for a polished look */
    backdrop-filter: blur(8px); /* Subtle blur effect for depth */
    box-shadow: var(--shadow); /* Consistent shadow from other elements */
}

.hero-content h1 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-content h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.75rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), transparent);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: morph 15s linear infinite alternate;
}

/* Additional Floating Elements */
.hero-floating-code {
    position: absolute;
    font-family: 'Courier New', monospace;
    color: rgba(100, 255, 218, 0.8);
    font-size: 1rem;
    animation: floatCode 25s infinite linear;
    z-index: -1;
}

.code-1 {
    top: 60%;
    left: 15%;
}

.code-2 {
    top: 30%;
    right: 20%;
}

.code-3 {
    bottom: 20%;
    left: 25%;
}

.code-4 {
    top: 10%;
    right: 30%;
    animation-duration: 22s;
}

.code-5 {
    bottom: 30%;
    left: 10%;
    animation-duration: 28s;
}

.code-6 {
    top: 40%;
    right: 15%;
    animation-duration: 24s;
}

.code-7 {
    bottom: 40%;
    left: 35%;
    animation-duration: 26s;
}

.code-8 {
    top: 25%;
    left: 50%;
    animation-duration: 20s;
}

.code-9 {
    bottom: 15%;
    right: 25%;
    animation-duration: 23s;
}

.code-10 {
    top: 55%;
    left: 5%;
    animation-duration: 27s;
}

.code-11 {
    bottom: 25%;
    right: 35%;
    animation-duration: 21s;
}

.code-12 {
    top: 15%;
    left: 65%;
    animation-duration: 29s;
}

.code-13 {
    bottom: 35%;
    right: 10%;
    animation-duration: 25s;
}

.code-14 {
    top: 45%;
    left: 20%;
    animation-duration: 22s;
}

.code-15 {
    bottom: 5%;
    left: 45%;
    animation-duration: 28s;
}

.code-16 {
    top: 35%;
    right: 40%;
    animation-duration: 24s;
}

.code-17 {
    bottom: 45%;
    left: 30%;
    animation-duration: 26s;
}

.code-18 {
    top: 5%;
    right: 50%;
    animation-duration: 20s;
}

.code-19 {
    bottom: 55%;
    left: 60%;
    animation-duration: 23s;
}

.code-20 {
    top: 50%;
    right: 5%;
    animation-duration: 27s;
}

/* Animations */
@keyframes floatCode {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
    100% {
        transform: translate(50px, -100px) rotate(10deg);
        opacity: 0.15;
    }
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    100% {
        border-radius: 50% 50% 30% 70% / 60% 40% 70% 40%;
    }
}

/* About Section */
.about-section {
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1.5;
}

.about-image {
    flex: 1;
}

.image-frame {
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.profile-placeholder {
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.profile-placeholder .profile-img {
    width: auto;
    height: 100%;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-detail {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

/* Skills Section */
.skills-section {
    background-color: var(--primary-color);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.skill-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-level {
    height: 8px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Experience Section */
.experience-section {
    background-color: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding-left: 50px;
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    left: 13.5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-period {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
}

/* Projects Section */
.projects-section {
    background-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-tech span {
    font-size: 0.8rem;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Contact Section */
.contact-section {
    background-color: var(--secondary-color);
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--accent-color);
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    margin-bottom: 0;
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    color: var(--accent-color);
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: rgba(100, 255, 218, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column-reverse;
    }

    .about-image {
        width: 70%;
        margin: 0 auto;
    }

    .about-details {
        grid-template-columns: repeat(1, 1fr);
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 10px 0;
        font-size: 1.2rem;
    }

    .menu-btn {
        display: block;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .timeline::after {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 3.5px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-section {
        padding-top: 80px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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