/* General Styles */
:root {
    --primary-color: #1d4572; /* Softer blue */
    --secondary-color: rgba(10, 25, 47, 0.8); /* Semi-transparent dark navy */
    --background-color: transparent; /* Transparent background */
    --text-color: #c6d1f3; /* Light gray */
    --light-text-color: #ffffff; /* White */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Space Background */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

/* Floating Stars */
.floating-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-stars span {
    position: absolute;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    animation: floatAround linear infinite, glow 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Floating Around Animation */
@keyframes floatAround {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, 20px);
    }
    50% {
        transform: translate(-20px, 20px);
    }
    75% {
        transform: translate(-20px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Glowing Animation */
@keyframes glow {
    0%, 100% {
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.8);
    }
}

/* Header Styles */
header {
    background-color: rgba(10, 25, 47, 0); /* Semi-transparent dark navy */
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Blur effect */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text-color);
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: transparent;
    color: var(--light-text-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Timeline Section */
.experience {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent;
    color: var(--text-color);
}

.experience h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.experience .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: rgba(74, 144, 226, 0.5);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(17, 34, 64, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
    overflow: hidden;
    height: 120px;
}

.timeline-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    height: auto;
}

.timeline-content {
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-text-color);
}

.timeline-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-content p {
    opacity: 1;
}

/* Skills Section */
.skills {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent;
    color: var(--text-color);
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.skills .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background-color: rgba(17, 34, 64, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.skill-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-text-color);
}

.skill-item p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent;
    color: var(--text-color);
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.testimonials .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background-color: rgba(17, 34, 64, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial-item h4 {
    font-size: 1.25rem;
    color: var(--light-text-color);
}

/* Call-to-Action Section */
.cta-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: rgba(74, 145, 226, 0);
    color: var(--light-text-color);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-primary {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.cta-primary:hover {
    background-color: transparent;
    border: 2px solid var(--light-text-color);
    color: var(--light-text-color);
    transform: translateY(-3px);
}

/* Footer Section */
footer {
    background-color: rgba(10, 25, 47, 0);
    padding: 2rem;
    text-align: center;
    color: var(--light-text-color);
    margin-top: 4rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-in {
    animation: fadeInUp 1s ease-in-out;
}