/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Define Color Palette */
    --primary-color: #0077b6; /* Bright Blue */
    --secondary-color: #90e0ef; /* Light Cyan */
    --accent-color: #ee9b00; /* Amber for highlights */
    --text-color: #2a2a2a;
    --bg-light: #f8f9fa;
    --bg-dark: #ffffff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

/* --- Header & Navigation --- */
header {
    background: var(--bg-dark);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.desktop-nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* 🌟 Drawer Menu Styling */
.drawer-menu {
    position: fixed;
    top: 0;
    right: -250px; /* Hidden by default */
    width: 250px;
    height: 100%;
    background-color: var(--primary-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.4);
    padding-top: 80px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Cool Spring effect */
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.drawer-menu.open {
    right: 0;
}

.drawer-menu a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.1rem;
    color: white;
    transition: background-color 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-menu a:hover {
    background-color: #005a8b;
    padding-left: 35px; /* Slight movement on hover */
}

/* --- Sections & General Styling --- */
section {
    padding: 80px 5%;
    min-height: 80vh;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    /* New Light Blue Background */
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color) 80%);
    color: white; /* Text color remains white for contrast */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 90vh;
    overflow: hidden; /* Important to hide bubbles outside the section */
}
/* ================================== */
/* 🫧 Floating Bubble Animation */
/* ================================== */

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below hero-content */
}

.hero-content {
    z-index: 10; /* Ensure content is on top */
}

.bubble {
    position: absolute;
    bottom: -100px; /* Start below the viewport */
    background: rgba(56, 189, 255, 0.585); /* Semi-transparent white/blue */
    border-radius: 50%;
    animation: floatUp infinite ease-in; /* Attach the animation */
    box-shadow: 0 0 10px rgba(60, 183, 255, 0.587);
}

/* Bubble Sizes and Animation Durations (Randomization) */
.bubbles-container .bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 15s; }
.bubbles-container .bubble:nth-child(2) { width: 20px; height: 20px; left: 20%; animation-duration: 20s; animation-delay: 2s; }
.bubbles-container .bubble:nth-child(3) { width: 50px; height: 50px; left: 35%; animation-duration: 12s; animation-delay: 1s; }
.bubbles-container .bubble:nth-child(4) { width: 80px; height: 80px; left: 50%; animation-duration: 25s; }
.bubbles-container .bubble:nth-child(5) { width: 35px; height: 35px; left: 65%; animation-duration: 18s; animation-delay: 3s; }
.bubbles-container .bubble:nth-child(6) { width: 60px; height: 60px; left: 75%; animation-duration: 10s; }
.bubbles-container .bubble:nth-child(7) { width: 90px; height: 90px; left: 85%; animation-duration: 22s; animation-delay: 1s; }
.bubbles-container .bubble:nth-child(8) { width: 25px; height: 25px; left: 45%; animation-duration: 14s; animation-delay: 4s; }
.bubbles-container .bubble:nth-child(9) { width: 70px; height: 70px; left: 5%; animation-duration: 16s; animation-delay: 2s; }
.bubbles-container .bubble:nth-child(10) { width: 45px; height: 45px; left: 95%; animation-duration: 19s; animation-delay: 5s; }
/* Keyframe for Floating Bubbles */
@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-50vh) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg); /* Move up 100% of viewport height */
        opacity: 0; /* Fade out as it leaves the top */
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    margin-bottom: 20px;
    box-shadow: 0 0 0 10px rgba(0, 110, 255, 0.2);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #00369b;
    transform: translateY(-3px) scale(1.02); /* Lift and slight zoom */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-item {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    font-weight: 600;
    border-bottom: 5px solid var(--primary-color);
    transition: all 0.3s;
}

.skill-item:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px); /* Lift effect */
    color: var(--text-color);
}

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

.project-card {
    background-size: cover;
    background-position: center;
    height: 350px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease-out;
}

/* Project Card Hover Animation (pop-up) */
.project-card:hover.pop-up {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.project-card h3, .project-card p, .project-card a {
    position: relative;
    z-index: 2;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.project-card p {
    margin-bottom: 15px;
    font-weight: 300;
}

.project-card a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.project-card a:hover {
    color: #0086ce;
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 119, 182, 0.5);
    outline: none;
}

.contact-form button {
    align-self: flex-start;
}


/* ================================== */
/* 🚀 ENHANCED PROFESSIONAL FOOTER */
/* ================================== */
.pro-footer {
    background: #0d0f23;
    padding: 40px 5%;
    color: #d9e1ff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Inter', sans-serif;
}

.pro-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: #ffffff;
}

.footer-left p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 18px;
}

.pro-icon {
    font-size: 1.4rem;
    color: #b9c4ff;
    padding: 10px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.pro-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-3px);
}

/* Desktop View */
@media (min-width: 768px) {
    .pro-footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}


/* ================================== */
/* 🚀 Cool Animations (Keyframes) */
/* ================================== */

/* 1. Fade-In Animation for Sections on Scroll */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    /* Initially invisible */
    opacity: 0;
    /* You will add a class like 'is-visible' via JS to trigger the animation on scroll */
    /* For now, setting it here to see the effect: */
    animation: fadeIn 1s ease-out forwards;
}

/* 2. Hero Text Entry Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-text {
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
}

.animate-text.delay-1 {
    animation-delay: 0.2s;
}

.animate-text.delay-2 {
    animation-delay: 0.4s;
}

/* ================================== */
/* Responsive Design (Mobile) */
/* ================================== */
@media (max-width: 768px) {
    
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

    section {
        padding: 50px 5%;
    }
    
    h2 {
        font-size: 2rem;
    }
}