:root {
    --dark-bg: #1a1a1a;
    --darker-bg: #121212;
    --cloud-white: #f0f4f8;
    --soft-blue: #7fb3fa;
    --bright-blue: #00ffff;
    --text-gray: #a0a0a0;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--cloud-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before, body::after {
    content: '';
    position: fixed;
    top: 0;
    height: 100vh;
    width: 150px; /* Increased width for more spread */
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(127, 179, 250, 0.05) 20%,
        rgba(0, 255, 255, 0.1) 40%,
        rgba(127, 179, 250, 0.15) 50%,
        rgba(0, 255, 255, 0.1) 60%,
        rgba(127, 179, 250, 0.05) 80%,
        transparent 100%
    );
    filter: blur(30px); /* Increased blur for smoother effect */
    animation: cloudMove 15s ease-in-out infinite; /* Slowed down animation */
}

body::before {
    left: -50px;
    animation-delay: -7s;
}

body::after {
    right: -50px;
}

/* Updated cloud animation */
@keyframes cloudMove {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(50px) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
}

/* Navbar Styles */
.navbar {
    background-color: var(--darker-bg);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-btn {
    display: none;  /* Hidden by default */
}

.nav-brand {
    background: linear-gradient(
        120deg,
        var(--soft-blue) 0%,
        var(--bright-blue) 50%,
        var(--soft-blue) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s ease-in-out infinite;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: var(--cloud-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--soft-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg'); /* Add your image here */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3); /* Darkens the image for better text visibility */
    z-index: -1;
}

.quote-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    background: rgba(18, 18, 18, 0.7); /* Semi-transparent dark background */
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid rgba(127, 179, 250, 0.1);
}

blockquote {
    background: linear-gradient(
        120deg,
        var(--soft-blue) 0%,
        var(--bright-blue) 50%,
        var(--soft-blue) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s ease-in-out infinite;
    white-space: normal;  /* Changed from nowrap */
    width: 100%;         /* Ensure full width */
    margin: 0 auto;
    font-size: 2rem;     /* Slightly reduced for better fit */
    line-height: 1.4;    /* Added for better readability */
    margin-bottom: 1rem;
}

cite {
    color: var(--soft-blue);
    font-style: italic;
}

/* About Section */
.about {
    padding: 5rem 5%;
}

.profile-container {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-img {
    width: 320px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--soft-blue);
    box-shadow: 0 0 20px rgba(127, 179, 250, 0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.02);
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.name-above-photo {
    margin-bottom: 0.5rem;
}

.about-content h1 {
    background: linear-gradient(
        120deg,
        var(--soft-blue) 0%,
        var(--bright-blue) 50%,
        var(--soft-blue) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s ease-in-out infinite;
    margin-bottom: 1rem;
}

.about-text {
    color: var(--text-gray);
    max-width: 600px;
    white-space: normal;  /* Changed from nowrap */
    width: 100%;
    max-width: 800px;
    line-height: 1.6;
    margin: 1rem 0;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 2rem 5%;
}

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

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

.footer-links a {
    color: var (--cloud-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--soft-blue);
}

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

.social-links a {
    color: var(--cloud-white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--soft-blue);
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.skills-container {
    margin-top: 2rem;
}

.skills-container h2 {
    background: linear-gradient(
        120deg,
        var(--soft-blue) 0%,
        var(--bright-blue) 50%,
        var(--soft-blue) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.flashcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.flashcard {
    background-color: var(--darker-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--soft-blue);
}

.flashcard:hover {
    transform: translateY(-5px);
    border-color: var(--bright-blue);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    background: linear-gradient(
        145deg,
        var(--darker-bg) 0%,
        rgba(0, 255, 255, 0.1) 100%
    );
}

.flashcard i {
    font-size: 2rem;
    color: var(--soft-blue);
    margin-bottom: 1rem;
}

.flashcard h3 {
    color: var(--cloud-white);
    margin-bottom: 0.5rem;
}

.flashcard p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Remove the conflicting animation definitions and update the typing animation */
.typing-animation {
    overflow: hidden;
    opacity: 0;
    white-space: normal;  /* Allow text wrapping */
    width: 100%;         /* Full width from start */
    animation: fadeInText 1s ease-out forwards;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
.delay-3 { animation-delay: 3s; }

/* Remove the typing animation and keep only fadeInText */
@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add this for the skills container */
.skills-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.name-above-photo {
    background: linear-gradient(
        120deg,
        var(--soft-blue) 0%,
        var(--bright-blue) 50%,
        var(--soft-blue) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    text-align: center;
    margin: 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 1rem;
        background-color: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--cloud-white);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

    .nav-links a {
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .quote-container {
        padding: 1rem;
        margin: 0 1rem;
    }

    blockquote {
        font-size: 1.5rem;
    }

    /* Profile Section */
    .profile-container {
        flex-direction: column;
        padding: 1rem;
    }

    .profile-img {
        width: 250px;
        height: 300px;
    }

    /* Skills Section */
    .flashcards {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    /* Project Cards */
    .project-card {
        margin: 1rem;
    }

    .tech-stack {
        flex-wrap: wrap;
    }

    /* Contact Page */
    .contact-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    /* Resume Page */
    .pdf-container {
        margin: 1rem;
    }

    .pdf-viewer {
        height: 70vh;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    blockquote {
        font-size: 1.2rem;
    }

    .profile-img {
        width: 200px;
        height: 250px;
    }
}

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

.experience-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(127, 179, 250, 0.1);
    margin-bottom: 2rem;
    border-radius: 15px;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

.company-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(127, 179, 250, 0.1);
    box-shadow: 0 0 10px rgba(127, 179, 250, 0.2);
}

.experience-details {
    flex: 1;
}

.experience-details h3 {
    color: var(--cloud-white);
    margin-bottom: 0.5rem;
}

.experience-details ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-gray);
}

.experience-details ul li {
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}