/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    --bg-main: #0b0f19;
    /* Deep dark background */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #00f2fe;
    /* Electric Blue */
    --accent-purple: #b026ff;
    /* Neon Purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    /* Smooth scrolling for anchor links */
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.4);
    /* Glow effect on hover */
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 10%;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-blue);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--bg-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 100px;
    /* offset for nav */
}

.hero-content {
    max-width: 600px;
}

.hero-content h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin: 10px 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.typing-text {
    color: var(--accent-blue);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-blue);
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Placeholder for the user image */
.image-placeholder {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #fff;
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.3);
    border: 5px solid var(--bg-main);
}

/* Styling for the new profile photo */
.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    /* Ensures the image doesn't stretch */
    border-radius: 50%;
    /* Makes it a perfect circle */
    border: 5px solid var(--bg-main);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.3);
    /* Adds the glowing effect */
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    /* Slight zoom when you hover over it */
}

/* Adjust for mobile screens */
@media (max-width: 991px) {
    .profile-img {
        width: 300px;
        height: 300px;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Services Section (What Do I Do?)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    transform: translateY(-3px);
}

/* ==========================================================================
   Experience & Education Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    top: 0;
    left: -2.35rem;
    /* Center over the line */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    border: 4px solid var(--bg-main);
}

.timeline-content h3 {
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content h4 span {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
}

.timeline-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Contact Section & Footer
   ========================================================================== */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--accent-purple);
}

.social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-blue);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Scroll Reveal Animations (JS triggers .active)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries for Responsiveness
   ========================================================================== */
@media (max-width: 991px) {
    .section {
        padding: 80px 5%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 3rem;
    }

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

    .hero-content h1 {
        font-size: 3rem;
    }

    .image-placeholder {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        transition: 0.4s ease;
        border-top: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

    .timeline::before {
        left: 0;
    }

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

    .timeline-dot {
        left: -10px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

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