/* ==================== Global Styles ==================== */
:root {
    /* Light AI-themed palette */
    --primary-color: #0f4c81;        /* Deep blue accent */
    --secondary-color: #6ec6ff;      /* Light cyan */
    --accent-color: #8be29a;         /* Soft green */
    /* Logo-specific colors (from original logo) */
    --logo-blue: #1a4a63;
    --logo-green: #6db54e;
    --bg-color: #ffffff;             /* Page background (white) */
    --text-color: #0b2540;           /* Dark text for light bg */
    --muted-text: #5b6b7a;           /* Muted/gray text */
    --card-bg: rgba(245, 250, 255, 0.8);
    --glass-border: rgba(14, 57, 96, 0.06);
    --soft-shadow: 0 6px 24px rgba(14, 57, 96, 0.06);
}

/* Accessibility helper: visually hidden but available to screen readers */
.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* subtle animated gradient blobs behind the content for an AI "light" theme */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(700px 450px at 8% 18%, rgba(110,198,255,0.12), transparent 14%),
                radial-gradient(520px 360px at 82% 82%, rgba(139,226,154,0.10), transparent 12%),
                linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.9));
    /* slower, gentler movement */
    animation: aiBlobs 18s ease-in-out infinite alternate;
}

@keyframes aiBlobs {
    0% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(18px,-12px,0) scale(1.03); }
    100% { transform: translate3d(-14px,20px,0) scale(1); }
}

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

/* ==================== Navigation Bar ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff; /* white header */
    z-index: 1000;
    box-shadow: var(--soft-shadow);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 276px; /* adjusted to ~3x logo size */
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo .site-logo {
    height: 216px; /* adjusted logo height ~3x */
    display: block;
}

.nav-logo-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.18s ease;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--logo-green), var(--logo-blue));
    transition: width 0.18s ease;
    border-radius: 3px;
}

.nav-link.active {
    /* keep active link visible on white header */
    color: var(--logo-blue);
    font-weight: 700;
}

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

.nav-link:hover { color: var(--logo-blue); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span { width: 25px; height: 3px; background: rgba(255,255,255,0.85); border-radius: 2px; }

/* ==================== Floating Banners ==================== */
.floating-banner {
    position: fixed;
    background: linear-gradient(90deg, rgba(26,74,99,0.08), rgba(109,181,78,0.06));
    color: var(--logo-blue);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 999;
    box-shadow: var(--soft-shadow);
    /* slower float animation */
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(6px);
    border: 1px solid var(--glass-border);
}

.banner-1 {
    top: 100px;
    right: 20px;
    animation-delay: 0s;
}

.banner-2 {
    bottom: 300px;
    left: 20px;
    animation-delay: 1s;
}

.banner-3 {
    bottom: 80px;
    right: 20px;
    animation-delay: 2s;
}

.banner-text {
    font-size: 14px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px 50px;
    margin-top: 300px; /* push content below larger header (~3x) */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px 400px at 10% 30%, rgba(110,198,255,0.08), transparent 10%),
                radial-gradient(500px 300px at 85% 80%, rgba(139,226,154,0.06), transparent 12%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-content {
    flex: 1;
    z-index: 2;
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--muted-text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--soft-shadow);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(26, 74, 99, 0.5);
}

/* Tech Badges */
.tech-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech-badge {
    padding: 8px 16px;
    background: rgba(14, 57, 96, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
    z-index: 2;
}

.floating-object {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: float 4s ease-in-out infinite;
    opacity: 0.8;
}

.obj1 {
    width: 150px;
    height: 150px;
    top: 50px;
    right: 50px;
    animation-delay: 0s;
}

.obj2 {
    width: 100px;
    height: 100px;
    bottom: 100px;
    right: 100px;
    animation-delay: 1s;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.obj3 {
    width: 120px;
    height: 120px;
    top: 200px;
    right: 300px;
    animation-delay: 2s;
}

.stars {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    top: 20%;
    right: 10%;
    box-shadow:
        20px 30px 0 white,
        40px -20px 0 white,
        -30px 40px 0 white,
        60px 60px 0 white;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ==================== Services Section ==================== */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(102, 126, 234, 0.05));
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    border-radius: 15px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(109, 181, 78, 0.15), rgba(74, 159, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 40px rgba(74, 159, 216, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.tech-stack {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card p {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 15px;
}

.card-hover-effect {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.5s ease;
}

.service-card:hover .card-hover-effect {
    width: 100%;
}

/* ==================== AI Solutions Section ==================== */
.ai-solutions {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05), transparent);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ai-card {
    padding: 35px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: var(--soft-shadow);
}

.ai-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(109, 181, 78, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 12px;
}

.ai-card:hover {
    transform: scale(1.05) rotateY(5deg);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(109, 181, 78, 0.2);
}

.ai-card:hover::after {
    opacity: 1;
}

.ai-icon {
    font-size: 50px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.ai-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.ai-card p {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 14px;
}

/* ==================== Portfolio Section ==================== */
.portfolio {
    padding: 100px 0;
}

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

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 74, 99, 0.1), rgba(74, 159, 216, 0.08));
    border: 1px solid rgba(74, 159, 216, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 159, 216, 0.3);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-item h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
    color: var(--light-text);
}

.project-tech {
    padding: 0 20px;
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px !important;
}

.portfolio-item p {
    padding: 0 20px 20px;
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== Contact Section ==================== */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    min-width: 30px;
}

.info-item h4 {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--muted-text);
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(11, 37, 64, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 6px 24px rgba(110,198,255,0.18);
    background: #ffffff;
}

.submit-btn {
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(14,57,96,0.08);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.5);
}

/* ==================== Footer ==================== */
.footer {
    background: transparent;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    color: var(--muted-text);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(74, 159, 216, 0.15);
    border-radius: 50%;
    border: 1px solid rgba(74, 159, 216, 0.3);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(14,57,96,0.03);
    font-size: 14px;
    color: var(--muted-text);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        padding: 100px 20px 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-image {
        margin-top: 40px;
        height: 300px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .services-grid,
    .ai-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-banner {
        font-size: 12px;
        padding: 10px 15px;
        border-radius: 25px;
    }

    .banner-1 {
        right: 10px;
        top: 80px;
    }

    .banner-2 {
        left: 10px;
    }

    .banner-3 {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .floating-banner {
        display: none;
    }

    /* Cap header and logo sizes on smaller screens to remain usable */
    .nav-container {
        height: 140px;
    }

    .nav-logo .site-logo {
        height: 120px;
    }

    .hero { margin-top: 160px; }

    .nav-logo {
        font-size: 18px;
    }

    .cta-button,
    .submit-btn {
        width: 100%;
    }
}

/* ==================== Smooth Scrolling & Animations ==================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    }
}

/* Intersection Observer Animation */
.fade-in {
    animation: slideUp 0.8s ease-out forwards;
}

