@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: #00ff41;
    background: #0a0a0a;
    overflow-x: hidden;
}

/* Cyberpunk Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, #00ff41 100%),
        linear-gradient(180deg, transparent 98%, #ff0080 100%);
    background-size: 40px 40px, 20px 20px;
    opacity: 0.03;
    z-index: -1;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 20px); }
}

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

/* Glitch Effect */
.glitch {
    position: relative;
    color: #00ff41;
    font-weight: bold;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 3s infinite;
    color: #ff0080;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translate(0); }
    15%, 49% { transform: translate(-1px, -1px); }
    50%, 99% { transform: translate(1px, 1px); }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% { transform: translate(0); }
    21%, 62% { transform: translate(1px, 0); }
    63%, 99% { transform: translate(-1px, 1px); }
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #000000 100%);
    color: #00ff41;
    padding: 1rem 0;
    box-shadow: 0 0 25px #ff0080, inset 0 0 25px rgba(0, 255, 65, 0.1);
    border-bottom: 2px solid #00ff41;
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    opacity: 0.15;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #00ff41;
    text-shadow: 0 0 15px #00ff41, 0 0 30px #00ff41, 0 0 45px #00ff41;
    letter-spacing: 2px;
}

.nav-tagline {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #ff0080;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 0 8px #ff0080;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a0033 25%, #330066 50%, #1a0033 75%, #000000 100%);
    color: #00ff41;
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, #ff0080 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, #00ffff 0%, transparent 50%);
    opacity: 0.15;
    animation: pulse 5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.25; }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, #00ff41, #00ffff, #ff0080);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    text-shadow: 0 0 40px rgba(0, 255, 65, 0.5);
    letter-spacing: clamp(1px, 2vw, 4px);
    line-height: 1.1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    max-width: 90%;
    margin: 0 auto;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Services Section */
.services {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: 
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(-45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0a0a0a 75%),
        linear-gradient(-45deg, transparent 75%, #0a0a0a 75%);
    background-size: 15px 15px;
    background-position: 0 0, 0 7.5px, 7.5px -7.5px, -7.5px 0px;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000000 100%);
    opacity: 0.9;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services h2 {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: clamp(2rem, 6vw, 4rem);
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 25px #00ff41;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #1a0033 0%, #000000 50%, #001a33 100%);
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 2px solid #00ff41;
    box-shadow: 
        0 0 25px rgba(0, 255, 65, 0.4),
        inset 0 0 25px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #ff0080;
    box-shadow: 
        0 0 35px rgba(255, 0, 128, 0.6),
        0 8px 30px rgba(0, 0, 0, 0.8),
        inset 0 0 25px rgba(255, 0, 128, 0.15);
}

.service-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card.fade-in:hover {
    transform: translateY(-8px) scale(1.02);
}

.service-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 1rem;
    color: #00ffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 12px #00ffff;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.service-card p {
    color: #00ff41;
    line-height: 1.6;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Contact Section */
.contact {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #000000 0%, #330066 50%, #000000 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(0, 255, 65, 0.08) 82px
        );
    animation: matrixRain 15s linear infinite;
}

@keyframes matrixRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact h2 {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: clamp(2rem, 6vw, 4rem);
    color: #ff0080;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 25px #ff0080;
    font-weight: 700;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 700px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #1a0033 0%, #000000 50%, #001a33 100%);
    border-radius: 15px;
    border: 2px solid #ff0080;
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.5),
        inset 0 0 30px rgba(255, 0, 128, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, #00ffff, transparent);
    animation: rotate 6s linear infinite;
    z-index: -1;
}

.contact-item::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, #1a0033 0%, #000000 50%, #001a33 100%);
    border-radius: 13px;
    z-index: -1;
}

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

.contact-item:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.7),
        0 8px 25px rgba(0, 0, 0, 0.9);
}

.contact-item h3 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 1rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 12px #00ffff;
    font-weight: 700;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #00ff41;
    text-decoration: none;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px #00ff41;
    letter-spacing: 0.5px;
    word-break: break-word;
}

.contact-item a:hover {
    color: #ff0080;
    text-shadow: 0 0 15px #ff0080;
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a0033 100%);
    color: #00ff41;
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) 0;
    border-top: 2px solid #00ff41;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(0, 255, 65, 0.05) 8px,
            rgba(0, 255, 65, 0.05) 16px
        );
}

footer p {
    color: #00ff41;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 500;
    text-shadow: 0 0 8px #00ff41;
    position: relative;
    z-index: 2;
}

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        margin-bottom: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .hero {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    .services,
    .contact {
        padding: 2.5rem 0;
    }
    
    .service-card,
    .contact-item {
        padding: 1.25rem;
    }
    
    .nav-container {
        padding: 0 8px;
    }
    
    .glitch::before,
    .glitch::after {
        display: none; /* Disable glitch on small screens for performance */
    }
}

@media (max-width: 360px) {
    .service-card,
    .contact-item {
        padding: 1rem;
    }
    
    .hero-content p {
        max-width: 95%;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid #00ff41;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff41, #ff0080);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff0080, #00ffff);
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00ff41, #0080ff);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    background: linear-gradient(45deg, #0080ff, #00ff41);
    border-color: #00ff41;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: linear-gradient(135deg, #000000 0%, #1a0033 25%, #330066 50%, #1a0033 75%, #000000 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(0, 255, 65, 0.05) 20px,
            rgba(0, 255, 65, 0.05) 40px
        );
}

.about .container {
    position: relative;
    z-index: 2;
}

.about h2 {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: clamp(2rem, 6vw, 4rem);
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 25px #00ff41;
    font-weight: 700;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41;
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .about {
        padding: 3rem 0;
    }
    
    .about-content p {
        font-size: 1rem;
    }
}

/* Performance optimizations for mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        animation: none;
    }
}
