/* Reset & Base Styles */
:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography & Utilities */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; color: var(--text); }
p { color: var(--text-muted); margin-bottom: 1.5rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-icon {
    position: absolute;
    background: var(--dark-light);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

.main-icon {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    color: var(--primary);
    z-index: 2;
}

.sub-icon-1 {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    color: var(--secondary);
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.sub-icon-2 {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    color: #10b981;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--dark-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark);
    padding: 40px 30px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stats li {
    display: flex;
    flex-direction: column;
}

.count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.code-window {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

.window-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.kwd { color: #cc7832; }
.cls { color: #a9b7c6; }
.str { color: #6a8759; }
.fn { color: #ffc66d; }
.this { color: #9876aa; }
.indent { margin-left: 20px; }
.double-indent { margin-left: 40px; }

/* Contact (UPDATED) */
.contact {
    padding: 100px 0;
    background: linear-gradient(to right, #0f172a, #162036);
    position: relative;
}

.contact-wrapper {
    background: var(--dark-light);
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-wrapper.full-center {
    display: block;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info.center-text {
    width: 100%;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

/* Contact Cards Grid */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255,255,255,0.03);
    padding: 30px 20px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255,255,255,0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.contact-card a, 
.contact-card span {
    font-weight: 600;
    color: var(--text);
    display: block;
}

.contact-card a:hover {
    color: var(--primary);
}

.mail-link {
    font-size: 1.1rem;
    color: var(--primary) !important;
}

.phones {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links a {
    margin-left: 20px;
    font-size: 1.2rem;
    color: var(--text);
}

.social-links a:hover {
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .hero .container, 
    .about-content, 
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image { display: none; }
    
    .nav-links {
        display: none; /* Simple hide for mobile, JS can toggle */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--dark-light);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger { display: block; }

    .about-img { order: -1; margin-bottom: 30px; }
    
    .stats {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}