/* General Styles */
:root {
    --primary-color: #4a90e2; /* Softer blue */
    --secondary-color: rgba(10, 25, 47, 0.8); /* Semi-transparent dark navy */
    --background-color: transparent; /* Transparent background */
    --text-color: #ccd6f6; /* Light gray */
    --light-text-color: #ffffff; /* White */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color); /* Transparent background */
    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: white;
    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);
}

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: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: transparent; /* Transparent background */
    color: var(--light-text-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.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(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.cta-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent; /* Transparent background */
    color: var(--text-color);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.about-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.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); /* Semi-transparent dark navy */
    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);
}

/* Featured Work Section */
.featured-work {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent; /* Transparent background */
    color: var(--text-color);
}

.featured-work h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.featured-work .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    background-color: rgba(17, 34, 64, 0.8); /* Semi-transparent dark navy */
    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;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.work-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-text-color);
}

.work-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent; /* Transparent background */
    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); /* Semi-transparent dark navy */
    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);
}

/* Footer Section */
footer {
    background-color: rgba(10, 25, 47, 0); /* Semi-transparent dark navy */
    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;
}