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

:root {
    --primary: #00d4ff;
    --secondary: #7c3aed;
    --dark: #0f172a;
    --darker: #0a0f1f;
    --light: #f1f5f9;
    --text: #e2e8f0;
    --gray: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: fit-content;
}

.logo-img {
    width: 82px;
    height: 62px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo span {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    animation: slideInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    animation: slideInUp 1s ease-out 0.2s both;
}

.feature-item {
    background: rgba(0, 212, 255, 0.05);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--light);
    font-size: 1.1rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: slideInUp 1s ease-out 0.4s both;
}

.scroll-indicator span {
    font-size: 0.95rem;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.cta-button {
    padding: 12px 30px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.6);
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* About Section */
.about {
    background: rgba(124, 58, 237, 0.05);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    background: rgba(124, 58, 237, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(124, 58, 237, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray);
    margin: 0;
}

.feature-box {
    background: rgba(0, 212, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.feature-box:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-box h3 {
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    background: rgba(0, 0, 0, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(124, 58, 237, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: var(--delay, 0s);
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }

.service-card:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
    background: rgba(124, 58, 237, 0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: rgba(0, 212, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.portfolio-card:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.portfolio-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.portfolio-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tech span {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s;
}

.portfolio-card:hover .portfolio-tech span {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
}



/* Technologies Section */
.technologies {
    background: rgba(0, 212, 255, 0.02);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.tech-category {
    background: rgba(124, 58, 237, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.tech-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}

.tech-icon:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.tech-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.tech-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-icon span {
    font-size: 0.85rem;
    color: var(--text);
    text-align: center;
}

.custom-icon {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text);
    display: inline-block;
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

/* Team Section */
.team {
    background: rgba(124, 58, 237, 0.05);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    background: rgba(124, 58, 237, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.team-avatar {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.team-card .role {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.team-card .bio {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s;
}

.skill:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
}

.team-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.team-social a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 212, 255, 0.1));
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.cta-button-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

.cta-button-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.7);
}

/* Contact Section */
.contact {
    background: rgba(0, 0, 0, 0.3);
    margin-top: 3rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
    min-height: 85vh;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.submit-btn {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.6);
}

/* Footer */
.footer {
    background: rgba(10, 15, 31, 0.9);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gray);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-brand p {
    margin: 0.3rem 0 0 0;
    font-size: 0.85rem;
    color: var(--gray);
}

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

.footer-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.footer-links a:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Intersection Observer Animation */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        animation: fadeInUp 0.8s ease-out forwards;
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 50px 0;
    }

    .services-grid,
    .portfolio-grid,
    .tech-categories,
    .team-grid {
        gap: 1.5rem;
    }

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

    .cta-button,
    .cta-button-large,
    .submit-btn {
        width: 100%;
    }

    .about-text p {
        font-size: 1rem;
    }

    ul {
        margin-left: 1.5rem;
    }

    .footer .container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .service-card,
    .portfolio-card,
    .team-card {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
