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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(100vh) rotate(0deg); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100px) rotate(360deg); 
        opacity: 0; 
    }
}

/* Network Lines Animation */
.network-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: networkPulse 4s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.line:nth-child(1) { 
    top: 20%; 
    width: 200px; 
    left: 10%; 
    animation-delay: 0s; 
}
.line:nth-child(2) { 
    top: 40%; 
    width: 150px; 
    left: 60%; 
    animation-delay: 1s; 
}
.line:nth-child(3) { 
    top: 60%; 
    width: 180px; 
    left: 30%; 
    animation-delay: 2s; 
}
.line:nth-child(4) { 
    top: 80%; 
    width: 120px; 
    left: 70%; 
    animation-delay: 3s; 
}

@keyframes networkPulse {
    0%, 100% { 
        opacity: 0.2; 
        transform: scaleX(0.5); 
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1); 
    }
}

/* Floating Network Nodes */
.network-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.network-node:nth-child(1) { 
    top: 15%; 
    left: 20%; 
    animation-delay: 0s; 
}
.network-node:nth-child(2) { 
    top: 25%; 
    left: 80%; 
    animation-delay: 0.5s; 
}
.network-node:nth-child(3) { 
    top: 45%; 
    left: 15%; 
    animation-delay: 1s; 
}
.network-node:nth-child(4) { 
    top: 65%; 
    left: 75%; 
    animation-delay: 1.5s; 
}
.network-node:nth-child(5) { 
    top: 85%; 
    left: 40%; 
    animation-delay: 2s; 
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5); 
    }
}

/* Tech Background Elements for Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 127, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(0, 255, 255, 0.03) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 0, 255, 0.03) 50%, transparent 60%);
    background-size: 60px 60px;
    animation: techGrid 20s linear infinite;
    z-index: 1;
}

@keyframes techGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Hexagonal Grid Background */
.hero-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.hex-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: hexMove 30s linear infinite;
}

@keyframes hexMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

/* Circuit Board Pattern */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 1;
}

/* Floating Tech Elements */
.tech-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tech-element {
    position: absolute;
    color: rgba(0, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    animation: floatTech 15s linear infinite;
}

.tech-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tech-element:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 3s;
}

.tech-element:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 6s;
}

.tech-element:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 9s;
}

@keyframes floatTech {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border: 1px solid rgba(0, 255, 255, 0.2);
    animation: rotateShape 20s linear infinite;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(0, 255, 255, 0.1);
    top: 15%;
    left: 25%;
}

.shape.square {
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 255, 0.1);
    top: 70%;
    right: 30%;
    animation-delay: 5s;
}

.shape.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 255, 127, 0.1);
    top: 40%;
    left: 70%;
    animation-delay: 10s;
}

@keyframes rotateShape {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Binary Code Rain */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.binary-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(0, 255, 0, 0.3);
    animation: binaryFall 10s linear infinite;
}

.binary-column:nth-child(1) { left: 5%; animation-delay: 0s; }
.binary-column:nth-child(2) { left: 15%; animation-delay: 2s; }
.binary-column:nth-child(3) { left: 25%; animation-delay: 4s; }
.binary-column:nth-child(4) { left: 35%; animation-delay: 1s; }
.binary-column:nth-child(5) { left: 45%; animation-delay: 3s; }
.binary-column:nth-child(6) { left: 55%; animation-delay: 5s; }
.binary-column:nth-child(7) { left: 65%; animation-delay: 1.5s; }
.binary-column:nth-child(8) { left: 75%; animation-delay: 3.5s; }
.binary-column:nth-child(9) { left: 85%; animation-delay: 2.5s; }
.binary-column:nth-child(10) { left: 95%; animation-delay: 4.5s; }

@keyframes binaryFall {
    0% {
        top: -100%;
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.1);
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
}

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

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-links a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #00ffff;
    cursor: pointer;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: linear-gradient(45deg, #000000, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.6)); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: #000000;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn-full {
    width: 100%;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
    background: white;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.3rem;
}

/* Tech Stack */
.tech-stack {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item:hover::before {
    opacity: 0.1;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tech-item i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tech-item:hover i {
    color: #764ba2;
    transform: scale(1.1);
}

.tech-item h4 {
    position: relative;
    z-index: 1;
    color: #333;
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

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

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
    color: #00ffff;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #00ffff;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e7ff;
}

.form-group input,
.form-group textarea,
.form-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

footer p {
    opacity: 0.8;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    nav {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00e6e6, #e600e6);
}