/* Base Variables & Reset */
:root {
    --color-bg-dark: #020617;
    --color-bg-light: #0F172A;
    --color-sky-blue: #38BDF8;
    --color-electric-blue: #0EA5E9;
    --color-neon-green: #22FF88;
    --color-cyber-green: #00FFC8;
    --color-white: #FFFFFF;
    --color-gray-light: #94A3B8;
    --color-text-body: #E2E8F0;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-tech: 'Orbitron', sans-serif;

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(34, 255, 136, 0.4);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-light) 100%);
    color: var(--color-text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--color-white);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.text-neon { color: var(--color-neon-green); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray-light); }
.text-sm { font-size: 0.875rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }
.d-block { display: block; }
.relative { position: relative; }
.section-pad { padding: 6rem 0; }

/* Typography Highlights */
.tech-text {
    font-family: var(--font-tech);
    letter-spacing: 1px;
}
.tech-badge {
    display: inline-block;
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: var(--color-neon-green);
    background: rgba(34, 255, 136, 0.1);
    border: 1px solid rgba(34, 255, 136, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(34, 255, 136, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-sky-blue), var(--color-neon-green));
    color: var(--color-bg-dark);
    box-shadow: 0 0 15px rgba(34, 255, 136, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(34, 255, 136, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-gray-light);
}

.btn-secondary:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--color-neon-green);
    border: 1px solid var(--color-neon-green);
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: rgba(34, 255, 136, 0.1);
    box-shadow: 0 0 15px rgba(34, 255, 136, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-light);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-neon-green);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--color-neon-green);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #FFFFFF, var(--color-sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visuals {
    position: relative;
    height: 500px;
}

.floating-img {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.img-main {
    width: 80%;
    right: 0;
    top: 50px;
    animation: float 6s ease-in-out infinite;
}

.img-sub {
    width: 50%;
    left: -20px;
    bottom: 50px;
    animation: float 8s ease-in-out infinite reverse;
}

.ai-icon-floater {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-neon-green);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--color-neon-green);
    box-shadow: 0 0 15px rgba(34, 255, 136, 0.2);
    animation: float 5s ease-in-out infinite;
}

/* Background Elements */
.background-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px; height: 400px;
    background: var(--color-sky-blue);
    top: -100px; left: -100px;
    animation: drift 15s infinite alternate;
}

.shape-2 {
    width: 500px; height: 500px;
    background: rgba(34, 255, 136, 0.2);
    bottom: -200px; right: -100px;
    animation: drift 20s infinite alternate-reverse;
}

/* Grids */
.grid-container {
    display: grid;
    gap: 2rem;
}

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

/* Services Section */
.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

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

.section-desc {
    color: var(--color-gray-light);
    font-size: 1.1rem;
}

.icon-wrap {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

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

.service-detail-card .large-icon {
    font-size: 3rem;
}
.tech-list {
    margin-top: 1rem;
}
.tech-list li {
    font-size: 0.9rem;
    color: var(--color-gray-light);
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.2rem;
}
.tech-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-neon-green);
}

/* Process Section */
.step-number {
    font-family: var(--font-tech);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

/* Testimonials */
.stars {
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.client-info strong {
    display: block;
    color: var(--color-white);
}

.client-info span {
    font-size: 0.85rem;
    color: var(--color-sky-blue);
}

/* Portfolio & Blog */
.portfolio-img, .blog-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

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

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-sky-blue);
    font-weight: 600;
}

.read-more:hover {
    color: var(--color-neon-green);
}

/* Pages generic header */
.page-header {
    padding: 150px 0 80px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
}

/* About Section */
.rounded-img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.border-glow {
    border: 1px solid rgba(34, 255, 136, 0.2);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.stat-box h3 {
    font-size: 2.5rem;
    color: var(--color-neon-green);
    margin-bottom: 0;
}
.stat-box p {
    font-size: 0.9rem;
    color: var(--color-gray-light);
}
.align-center { align-items: center; }

/* Contact Section */
.social-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.02);
}
.social-badge:hover {
    border-color: var(--color-sky-blue);
    background: rgba(56, 189, 248, 0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray-light);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-sky-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Footer */
.glass-footer {
    background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-tech);
    color: var(--color-white);
}

.footer-brand p {
    color: var(--color-gray-light);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 300px;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 0.8rem;
    font-family: var(--font-tech);
}

.social-icon:hover {
    background: var(--color-sky-blue);
    color: var(--color-bg-dark);
    border-color: var(--color-sky-blue);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-neon-green);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.8rem; }
    .hero-visuals { display: none; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtext { margin: 0 auto 2rem auto; }
    .hero-buttons { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 1rem auto; }
    .social-links { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
}