/* Custom Properties */
:root {
    --primary: #0a66c2;
    --secondary: #00d2ff;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --text: #475569;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Poppins', sans-serif;
    color: var(--light);
    line-height: 1.2;
}

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

.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--light);
}

.subtitle {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.text-center { text-align: center; }

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Navbar with Glassmorphism */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.sticky {
    background: rgba(14, 11, 11, 0.653);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

header.sticky .navbar {
    padding: 15px 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
}

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(10, 102, 194, 0.85)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 25px;
}

.hero h1 span {
    background: linear-gradient(to right, var(--secondary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns { display: flex; gap: 20px; }

/* About Section */
.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.features {
    list-style: none;
    margin-top: 25px;
}

.features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.features i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
}

/* Why Us Section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.stat-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

.info-box {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
}

/* Portfolio Overlay */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 66, 194, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.1); }

/* Contact Form UI */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; }

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* Footer */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 80px 0 30px;
}

footer h3, footer h4 { color: var(--white); margin-bottom: 25px; }

footer ul { list-style: none; }

footer ul li { margin-bottom: 12px; }

footer a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover { color: var(--white); }

.social-icons { display: flex; gap: 20px; }

.social-icons i { font-size: 1.5rem; }

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Utility Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#loader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

/* Mobile Nav */
.hamburger { display: none; }

@media (max-width: 992px) {
    .grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; cursor: pointer; }
    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--dark);
        margin: 6px 0;
    }
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
    text-align: center;
    padding-bottom: 20px;
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card h3 {
    margin: 15px 0 10px;
}

.card p {
    padding: 0 15px;
    font-size: 14px;
    color: #555;
}

.card:hover {
    transform: translateY(-10px);
}