/* Modern Tech-Forward Design System */
:root {
    --color-primary: #FF6F61;
    --color-beige: #F9F7F4;
    --color-blue-gray: #6C7A89;
    --color-gold: #D4AF37;
    --color-text: #ffffff;
    --color-background: #FFFFFF;
    --color-tech-accent: #00F5FF;
    --color-tech-dark: #1A1A2E;
    --gradient-tech: linear-gradient(135deg, var(--color-tech-dark) 0%, #2A2A4A 100%);
    --gradient-accent: linear-gradient(45deg, var(--color-primary) 0%, var(--color-tech-accent) 100%);
    --shadow-neon: 0 0 15px rgba(0, 245, 255, 0.3);
    --animation-speed: 0.3s;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Open+Sans:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-tech-dark);
    overflow-x: hidden;
}

/* Modern Tech Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-tech-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

/* Typography with Tech Accents */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modern Navigation */
.nav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--animation-speed) ease;
}

.nav-logo:hover::after {
    transform: scaleX(1);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    transition: all var(--animation-speed) ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-tech-accent);
    transform: scaleX(0);
    transition: transform var(--animation-speed) ease;
}

.nav-link:hover {
    color: var(--color-tech-accent);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Hero Section with Advanced Tech Elements */
.hero {
    padding: 12rem 0 6rem;
    background: var(--gradient-tech);
    position: relative;
    overflow: hidden;
}

/* Snake-like Neon Rays */
.hero::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 100px;
    background: var(--color-tech-accent);
    filter: blur(4px);
    box-shadow: 
        0 0 10px var(--color-tech-accent),
        0 0 20px var(--color-tech-accent),
        0 0 30px var(--color-tech-accent);
    animation: snakeMove 10s ease-in-out infinite;
    opacity: 0.7;
}

.hero-rays {
    display: none;
}

@keyframes snakeMove {
    0% {
        top: -100px;
        left: -100px;
        transform: 
            rotate(0deg)
            translate(150px)
            rotate(0deg);
    }
    25% {
        transform: 
            rotate(90deg)
            translate(150px)
            rotate(-90deg);
    }
    50% {
        transform: 
            rotate(180deg)
            translate(150px)
            rotate(-180deg);
    }
    75% {
        transform: 
            rotate(270deg)
            translate(150px)
            rotate(-270deg);
    }
    100% {
        transform: 
            rotate(360deg)
            translate(150px)
            rotate(-360deg);
    }
}

/* Additional Snake Rays */
.hero-ray-1, .hero-ray-2 {
    position: absolute;
    width: 3px;
    height: 80px;
    background: var(--color-tech-accent);
    filter: blur(3px);
    opacity: 0.5;
}

.hero-ray-1 {
    animation: snakeMoveAlt1 12s ease-in-out infinite;
}

.hero-ray-2 {
    background: var(--color-primary);
    animation: snakeMoveAlt2 15s ease-in-out infinite;
}

@keyframes snakeMoveAlt1 {
    0%, 100% {
        top: 20%;
        left: -50px;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        top: 40%;
        left: 30%;
        transform: rotate(45deg) translateX(100px);
    }
    50% {
        top: 60%;
        left: 60%;
        transform: rotate(-45deg) translateX(0);
    }
    75% {
        top: 30%;
        left: 80%;
        transform: rotate(45deg) translateX(-100px);
    }
}

@keyframes snakeMoveAlt2 {
    0%, 100% {
        top: 80%;
        right: -50px;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        top: 60%;
        right: 30%;
        transform: rotate(-45deg) translateX(-100px);
    }
    50% {
        top: 40%;
        right: 60%;
        transform: rotate(45deg) translateX(0);
    }
    75% {
        top: 70%;
        right: 80%;
        transform: rotate(-45deg) translateX(100px);
    }
}

/* Glowing Border */
.hero-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-accent);
    box-shadow: 0 0 15px var(--color-tech-accent);
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-10px, 10px);
    }
    50% {
        transform: translate(10px, -10px);
    }
    75% {
        transform: translate(-10px, -10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
    animation: glow 3s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: var(--shadow-neon);
    position: relative;
    display: inline-block;
}

.hero h1::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, var(--color-tech-accent) 50%, transparent 55%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 5s infinite;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.8;
    position: relative;
}

.hero p::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 100px;
    height: 2px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--color-tech-accent);
}

@keyframes shine {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 245, 255, 0.2);
    }
}

/* Modern Tech Cards */
.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-tech);
    opacity: 0;
    transition: opacity var(--animation-speed) ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
    border-color: var(--color-tech-accent);
}

.card:hover::before {
    opacity: 0.5;
}

.card h3 {
    color: var(--color-tech-accent);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-tech-accent);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all var(--animation-speed) ease;
}

.card-link:hover {
    color: #fff;
    text-shadow: var(--shadow-neon);
}

/* Tech-Forward Footer */
.footer {
    background: var(--color-tech-dark);
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    position: relative;
    padding: 2px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-tech-accent);
    transform: scaleX(0);
    transition: transform var(--animation-speed) ease;
}

.footer-links a:hover {
    color: var(--color-tech-accent);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
    position: relative;
    padding: 2px 0;
}

.social-links a:hover {
    color: var(--color-tech-accent);
    text-shadow: var(--shadow-neon);
}

/* About Page */
.about-section {
    padding: 8rem 0 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

/* Contact Page */
.contact-section {
    padding: 8rem 0 4rem;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

/* Privacy Page */
.privacy-section {
    padding: 8rem 0 4rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Tech-Forward Animations */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 245, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 245, 255, 0.3);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-tech-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-tech-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Laser Scanner Effect (Horizontal) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 245, 255, 0.1) 0%,
        rgba(0, 245, 255, 0.3) 50%,
        rgba(0, 245, 255, 0.1) 100%
    );
    animation: laserScanHorizontal 5s infinite;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes laserScanHorizontal {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content {
        padding: 1rem;
        border-radius: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-tech-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .platform-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Fix for Hamburger Menu Icon */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
