/* ===================================
   Knowledge Delivery Services - Style
   COMPLETE VERSION - Use This File!
   =================================== */

/* CSS Variables */
:root {
    --navy-dark: #0F2744;
    --navy: #1B3A5C;
    --navy-light: #2A4D75;
    --cyan: #00B8D4;
    --cyan-light: #4DD0E1;
    --orange: #FF9800;
    --orange-light: #FFB74D;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-600: #475569;
    --gray-800: #1E293B;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo img {
    height: 150px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

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

.nav-link-cta {
    background: var(--cyan);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--navy);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-container {
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    animation: slideDown 0.6s ease-out;
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy-dark);
    margin-bottom: 20px;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto 36px;
    line-height: 1.6;
    animation: slideUp 0.6s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease-out 0.6s both;
}

.hero-stats {
    margin-top: 50px;
    animation: slideUp 0.6s ease-out 0.8s both;
}

.stat-item {
    display: inline-block;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Section Styles */
section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Services Preview */
.services-preview {
    background: var(--gray-50);
}

.services-intro {
    text-align: center;
    font-size: 15px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 30px;
}

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

.service-card {
    background: var(--white);
    padding: 20px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cyan);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.service-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.5;
    font-size: 14px;
}

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

/* Service Features List */
.service-features {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}

.service-features li {
    padding: 5px 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.4;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
    font-size: 12px;
}

/* Technology Stack */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.tech-category {
    padding: 32px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.tech-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.tech-category p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Why Choose Section */
.why-choose {
    background: var(--white);
}

.why-intro {
    text-align: center;
    font-size: 15px;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 20px;
    border-left: 3px solid var(--cyan);
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-left-color: var(--orange);
}

.feature-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 10px;
    letter-spacing: 1.5px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.5;
    font-size: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-number {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-card .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.stat-card p {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 14px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 15px;
}

.footer-col h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: var(--cyan);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Page Header (for non-home pages) */
.page-header {
    padding: 100px 0 40px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.1) 0%, transparent 70%);
    top: -100px;
    right: 10%;
}

.page-header h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Process Timeline - Horizontal Layout */
.process-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: inline-block;
    width: calc(33.333% - 20px);
    vertical-align: top;
    margin: 0 10px 30px;
    position: relative;
}

.timeline-content {
    text-align: center;
    padding: 20px 16px;
    background: var(--gray-50);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--cyan);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--cyan-light);
    position: relative;
    z-index: 2;
}

.timeline-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-content p {
    color: var(--gray-600);
    line-height: 1.5;
    font-size: 14px;
}

.timeline-empty {
    display: none;
}

/* Contact Form */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.contact-info-card {
    padding: 24px;
    background: var(--gray-50);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.contact-info-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 10px;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--gray-600);
    font-size: 15px;
}

.contact-info-card a:hover {
    color: var(--cyan);
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 36px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

label {
    display: block;
    font-weight: 500;
    color: var(--navy-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

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

.form-submit .btn {
    min-width: 200px;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    display: block;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    display: block;
}

/* About Page Specific */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.mission-card,
.vision-card {
    padding: 32px 28px;
    border-radius: 10px;
    position: relative;
}

.mission-card {
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    color: var(--white);
}

.vision-card {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: var(--white);
}

.mission-card h3,
.vision-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

.mission-card p,
.vision-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.value-card {
    padding: 24px 20px;
    background: var(--gray-50);
    border-radius: 10px;
    text-align: center;
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--cyan), var(--navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.value-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.value-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.5;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .timeline-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 82px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 82px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .timeline-item {
        width: 100%;
        display: block;
        margin: 0 0 24px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    section {
        padding: 40px 0;
    }

    .logo img {
        height: 100px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .service-card {
        padding: 20px 16px;
    }
    
    .logo img {
        height: 80px;
        width: auto;
    }
}