/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   Background Shapes
   ========================================================================== */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -10%;
    left: -10%;
    animation: float 10s infinite ease-in-out alternate;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 20%;
    right: -5%;
    animation: float 12s infinite ease-in-out alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 span, h2 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary-sm:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
}

.w-100 {
    width: 100%;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary-sm) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary-sm)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.visual-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.card-header {
    background: #0f172a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.card-body {
    padding: 20px;
}

.card-body pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #a78bfa;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
}

.section-title p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 1;
}

.about-us-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.about-content h2 {
    font-size: 2.5rem;
}

.about-content p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat span {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: rgba(15, 23, 42, 0.5);
}

.contact-info h2 {
    font-size: 2.2rem;
}

.contact-info p {
    color: #94a3b8;
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-form {
    padding: 50px;
}

.input-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero-container, .about-container, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-visual { display: none; } /* Hide code block on smaller screens to save space */
    .about-image { order: 2; margin-top: 40px; }
    .about-content { order: 1; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 100px 30px 30px;
        border-right: 1px solid var(--glass-border);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        align-items: flex-start;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    .contact-info, .contact-form {
        padding: 30px 20px;
    }
}

/* Small mobile devices (prevent zoom and horizontal overflow) */
@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   Form Success Message
   ========================================================================== */
.success-msg {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

.success-msg.show {
    display: block;
}

.success-msg i {
    margin-right: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
