/* CSS Variables */
:root {
    --primary-color: #40e0d0;
    --secondary-color: #00bcd4;
    --accent-color: #64ffda;
    --bg-dark: #0a0a1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --card-bg: rgba(64, 224, 208, 0.05);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-dark) 70%);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Enhanced Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: var(--text-light);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.star.large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 12px var(--primary-color);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

/* Enhanced Rotating World Effect */
.world-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.world-circles {
    position: absolute;
    width: 1200px;
    height: 1200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(64, 224, 208, 0.3);
    animation: rotate 30s linear infinite;
}

.circle-2 {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    animation: rotate 45s linear infinite reverse;
}

.circle-3 {
    width: 700px;
    height: 700px;
    border: 1px solid rgba(64, 224, 208, 0.15);
    animation: rotate 60s linear infinite;
}

.circle-4 {
    width: 900px;
    height: 900px;
    border: 1px solid rgba(64, 224, 208, 0.1);
    animation: rotate 80s linear infinite reverse;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes rotate {
    from { 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    to { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 1; 
    }
}

/* Enhanced Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(64, 224, 208, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(64, 224, 208, 0.5);
    transition: all 0.3s ease;
}

.logo-image{
    width: 40px;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(64, 224, 208, 0.8);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(64, 224, 208, 0.1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 80%;
}

/* Mobile Navigation */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Main Content */
.content {
    position: relative;
    z-index: 100;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    text-align: center;
}

/* Enhanced Home Section */
.home-section {
    flex-direction: column;
    position: relative;
}

.home-content {
    max-width: 1000px;
    margin: 0 auto;
}

.home-content h1 {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.5rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out, glow 2s ease-in-out infinite alternate;
    line-height: 1.1;
}

.home-content .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary-color);
    letter-spacing: 0.3rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.5s both;
    margin-bottom: 50px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(64, 224, 208, 0.5);
}

@keyframes glow {
    from { 
        text-shadow: 0 0 20px rgba(64, 224, 208, 0.3); 
    }
    to { 
        text-shadow: 0 0 30px rgba(64, 224, 208, 0.6); 
    }
}

/* Enhanced About Section */
.about-section {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%);
    backdrop-filter: blur(10px);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease-out;
}

.about-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.8;
    color: var(--text-muted);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.6) 0%, rgba(15, 15, 35, 0.8) 100%);
    flex-direction: column;
}

.services-content {
    max-width: 1400px;
    width: 100%;
}

.services-content h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    margin-bottom: 60px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease-out;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.service-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(64, 224, 208, 0.08) 100%);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.1), transparent);
    transition: all 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(64, 224, 208, 0.3);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-dark);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Team Section */
.team-section {
    background: rgba(15, 15, 35, 0.4);
    flex-direction: column;
}

.team-content {
    max-width: 1400px;
    width: 100%;
}

.team-content h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.3rem;
    margin-bottom: 80px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease-out;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.team-member {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(64, 224, 208, 0.1) 100%);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(64, 224, 208, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.team-member:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(64, 224, 208, 0.3);
    border-color: var(--primary-color);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--bg-dark);
    position: relative;
    z-index: 1;
}

.team-image{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--bg-dark);
    position: relative;
    z-index: 1;
}

.team-member h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.team-member .role {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.team-member .bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Work Section */
.work-section {
    flex-direction: column;
    background: rgba(15, 15, 35, 0.4);
}

.work-content {
    max-width: 1400px;
    width: 100%;
}

.work-content h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.3rem;
    margin-bottom: 80px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease-out;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.work-item {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(64, 224, 208, 0.1) 100%);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 25px;
    padding: 50px 30px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.work-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(64, 224, 208, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.work-item:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.work-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(64, 224, 208, 0.3);
    border-color: var(--primary-color);
}

.work-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 500;
    z-index: 1;
    position: relative;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(10, 10, 26, 0.8) 100%);
    backdrop-filter: blur(15px);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease-out;
}

.contact-info {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.contact-info p:hover {
    color: var(--primary-color);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(64, 224, 208, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    .mobile-menu {
        display: flex;
    }

    .nav-container {
        width: 95%;
    }

    .section {
        padding: 100px 15px;
    }

    .work-grid, 
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .work-item, 
    .team-member {
        height: auto;
        min-height: 250px;
        padding: 40px 20px;
    }

    .service-card {
        padding: 40px 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        letter-spacing: 0.2rem;
    }

    .home-content .subtitle {
        letter-spacing: 0.1rem;
    }

    .work-item, 
    .team-member {
        height: auto;
        min-height: 200px;
        padding: 30px 15px;
    }

    .work-item h3, 
    .team-member h3 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}