/* Modern CSS Reset & Variables */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #10b981;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --text-gray: #64748b;
    --card-bg: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: var(--light);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .logo { font-family: 'Poppins', sans-serif; }

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

/* Glassmorphism Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex; justify-content: space-between; align-items: center;
    height: 90px; /* increased height for bigger logo */
}

.logo { font-size: 2.2rem; font-weight: 700; color: #fff; text-decoration: none; transition: var(--transition); }
.logo span { color: var(--primary); }
.logo:hover { transform: scale(1.05); }

.nav ul { display: flex; gap: 2.5rem; list-style: none; }
.nav a {
    color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: var(--transition); position: relative;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0;
    height: 2px; background: var(--primary); transition: var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.hamburger span {
    width: 30px; height: 2px; background: #fff; transition: var(--transition);
}

/* Hero Section with Animated Background */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 50%);
    z-index: 0;
    animation: rotate 30s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><circle cx="10" cy="10" r="8" fill="white"/><circle cx="90" cy="30" r="12" fill="white"/><circle cx="30" cy="80" r="6" fill="white"/><circle cx="70" cy="70" r="10" fill="white"/></svg>');
    background-size: 200px 200px;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 4rem; line-height: 1.15; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.2rem; color: #94a3b8; max-width: 600px; margin: 0 auto 2.5rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 1rem;
    text-decoration: none; transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Tech Stack Icons - expanded */
.tech-stack { margin-top: 3rem; display: flex; justify-content: center; gap: 1.5rem; opacity: 0.7; flex-wrap: wrap; }
.tech-stack img { height: 40px; filter: grayscale(100%) brightness(200%); transition: var(--transition); }
.tech-stack img:hover { filter: grayscale(0%) brightness(100%); transform: scale(1.1); }

/* Sections & Cards */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 1rem; }
.section-header p { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.card {
    background: var(--card-bg); padding: 2.5rem; border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(79, 70, 229, 0.2);
}
.card-icon {
    width: 60px; height: 60px; border-radius: 16px; background: rgba(79, 70, 229, 0.1);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem; transition: var(--transition);
}
.card:hover .card-icon { background: var(--primary); color: #fff; }
.card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--dark); }
.card p { color: var(--text-gray); font-size: 0.95rem; }

/* Service Category Headers */
.service-category {
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--dark);
    border-left: 6px solid var(--primary);
    padding-left: 1rem;
}

/* About page specific styles */
.about-intro {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}
.address-badge {
    background: rgba(79, 70, 229, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--primary);
}
.mission-text {
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 24px;
    margin: 2rem 0;
    font-size: 1.2rem;
    text-align: center;
}
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.why-choose-item {
    background: rgba(79, 70, 229, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}
.why-choose-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}
.why-choose-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.why-choose-item:hover i {
    color: white;
}

/* Portfolio Cards with Images */
.portfolio-card {
    background: var(--card-bg); border-radius: 24px; overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.portfolio-img {
    height: 200px; background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem;
}
.portfolio-content { padding: 1.5rem; }
.portfolio-content h4 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--dark); }
.portfolio-content p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 1rem; }
.portfolio-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.portfolio-tags span {
    background: #f1f5f9; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; color: var(--dark);
}

/* Testimonials */
.testimonial-card {
    background: var(--card-bg); border-radius: 24px; padding: 2rem;
    border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: relative;
}
.testimonial-card::before {
    content: '\201C'; font-size: 6rem; position: absolute; top: -10px; left: 10px; color: var(--primary); opacity: 0.1; font-family: serif;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #ddd; }
.testimonial-author h4 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--dark); }
.testimonial-author p { font-size: 0.85rem; color: var(--text-gray); }
.stars { color: #fbbf24; margin-top: 0.5rem; }

/* Team Cards */
.team-card {
    background: var(--card-bg); border-radius: 24px; overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05);
    text-align: center; transition: var(--transition);
}
.team-card:hover { transform: translateY(-8px); }
.team-img {
    width: 120px; height: 120px; border-radius: 50%; margin: 2rem auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem;
}
.team-card h4 { font-size: 1.2rem; margin-bottom: 0.2rem; color: var(--dark); }
.team-card p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 1rem; }
.team-social { display: flex; justify-content: center; gap: 1rem; padding: 1rem 0 2rem; }
.team-social a { color: var(--text-gray); transition: var(--transition); }
.team-social a:hover { color: var(--primary); }

/* Stats Section */
.stats-grid {
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem;
    background: var(--primary); border-radius: 40px; padding: 4rem 2rem; color: white;
}
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 1rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

/* Partners Strip */
.partners {
    display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap;
    opacity: 0.6; filter: grayscale(1); transition: var(--transition);
}
.partners:hover { opacity: 1; filter: grayscale(0); }
.partners img { height: 40px; }

/* Back to Top Button */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--primary); color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(79,70,229,0.4); cursor: pointer;
    opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-hover); transform: translateY(-4px); }

/* Forms */
.contact-wrapper { max-width: 700px; margin: 0 auto; background: #fff; padding: 3rem; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: var(--dark); }
.form-control {
    width: 100%; padding: 14px 20px; border: 1px solid #e2e8f0; border-radius: 12px;
    font-family: inherit; font-size: 1rem; transition: var(--transition); background: #f8fafc;
}
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,0.1); }

/* Utility Classes */
.bg-gray { background-color: #f1f5f9; }
.text-center { text-align: center; }

/* Page Header for Inner Pages */
.page-header { padding: 140px 0 60px; background: var(--dark); color: #fff; text-align: center; }
.page-header h1 { font-size: 3rem; margin-bottom: 1rem; }

/* Footer */
.footer { background: var(--darker); color: #94a3b8; padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.footer h3 { color: #fff; margin-bottom: 1.5rem; }
.footer a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; align-items: center; justify-content: center; color: white; transition: var(--transition); }
.social-links a:hover { background: var(--primary); transform: translateY(-4px); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav ul {
        position: fixed; top: 90px; left: -100%; width: 100%; height: calc(100vh - 90px);
        background: var(--dark); flex-direction: column; padding: 3rem 2rem;
        transition: var(--transition); align-items: flex-start; gap: 2rem;
    }
    .nav ul.active { left: 0; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero h1 { font-size: 2.5rem; }
    .card { padding: 1.5rem; }
    .contact-wrapper { padding: 1.5rem; }
    .stats-grid { flex-direction: column; align-items: center; }
    .logo { font-size: 1.8rem; }
}

.logo {
display: flex;
align-items: center;
text-decoration: none;
}

.logo img {
height: 65px;
width: auto;
display: block;
}

.logo-text {
display: none; /* hidden by default */
font-size: 2rem;
font-weight: 700;
color: #fff;
}

.logo-text span {
color: var(--primary);
}



/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;        /* above the back-to-top button */
    right: 30px;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: var(--transition);
    z-index: 998;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
}