/* Professional Corporate Design - Nisarana Solutions */

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

:root {
    --primary-dark: #1e3a5f;
    --secondary-dark: #2c5282;
    --accent-teal: #0891b2;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --background-white: #ffffff;
    --background-light: #f9fafb;
    --background-gray: #f3f4f6;
    --border-light: #e5e7eb;
    --success-green: #059669;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
}

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

/* Header and Navigation */
.site-header {
    background-color: var(--background-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand img {
    height: 45px;
    width: auto;
}

.nav-brand h1 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    font-weight: 700;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #0891b2 100%);
    color: white;
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: white;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background-color: #0e7490;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1rem;
}

section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

section ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* About Brief Section */
.about-brief,
.services-intro {
    background-color: var(--background-white);
}

.about-brief article,
.services-intro article {
    max-width: 900px;
    margin: 0 auto;
}

/* Services Grid */
.services-overview,
.additional-services {
    background-color: var(--background-light);
}

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

.service-card {
    background-color: var(--background-white);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-teal);
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.service-card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-card a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card a:hover {
    color: var(--secondary-dark);
}

/* Features Grid */
.why-choose-us,
.why-contact {
    background-color: var(--background-white);
}

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

.feature {
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: 6px;
    border-left: 4px solid var(--accent-teal);
}

.feature h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #0891b2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

.cta-section h2,
.cta-section p,
.cta-section .btn {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: white;
    opacity: 1;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #0891b2 100%);
    color: white;
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: white;
    opacity: 1;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Company Overview */
.company-overview,
.service-detail-section,
.technology-stack {
    background-color: var(--background-white);
}

.company-overview article,
.service-detail article {
    max-width: 900px;
    margin: 0 auto;
}

.company-address {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-teal);
    margin: 1.5rem 0;
    border-radius: 4px;
}

.service-detail {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.service-detail h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-detail h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Company Stats */
.company-stats {
    background-color: var(--background-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-white);
    border-radius: 6px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* Mission and Vision */
.mission-vision {
    background-color: var(--background-white);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission, .vision {
    padding: 2rem;
    border-radius: 6px;
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-teal);
}

.mission h2, .vision h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.mission p, .vision p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background-color: #111827;
    color: white;
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section address,
.footer-section li {
    color: #d1d5db;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section address {
    font-style: normal;
}

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

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-teal);
}

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

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--background-white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-container > h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.faq-container > h2:first-of-type {
    margin-top: 0;
}

.faq-item {
    background-color: var(--background-light);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-teal);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item ul {
    margin-top: 0.75rem;
}

.faq-item a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
}

.faq-item a:hover {
    color: var(--secondary-dark);
}

/* Contact Section */
.contact-section {
    background-color: var(--background-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.contact-form h2 {
    margin-bottom: 0.5rem;
}

.contact-form > p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    padding: 1rem 0;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: 6px;
    border-left: 4px solid var(--accent-teal);
}

.contact-info-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-info-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-info-item a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-item a:hover {
    color: var(--secondary-dark);
}

/* Map Section */
.map-section {
    background-color: var(--background-light);
    padding: 3rem 0;
}

.map-container {
    background-color: var(--primary-dark);
    height: 350px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-container h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.map-container p {
    color: rgba(255, 255, 255, 0.95);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 20px;
    }

    /* Mobile Navigation */
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: var(--background-light);
        padding-left: 1rem;
    }

    /* Overlay for mobile menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero section mobile */
    .hero {
        padding: 4rem 0;
    }

    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Page header mobile */
    .page-header {
        padding: 2.5rem 0;
    }

    .page-header h2 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Section adjustments */
    section {
        padding: 2.5rem 0;
    }

    section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    section h3 {
        font-size: 1.25rem;
    }

    /* Grid layouts */
    .services-grid,
    .features-grid,
    .stats-grid,
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Cards and boxes */
    .service-card,
    .feature,
    .stat-item,
    .contact-form {
        padding: 1.5rem;
    }

    /* Contact page */
    .contact-form form {
        padding: 0;
    }

    /* Logo sizing */
    .nav-brand img {
        height: 45px;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    /* Service detail sections */
    .service-detail ul {
        padding-left: 1.25rem;
    }

    .service-detail ul li {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }

    /* FAQ */
    .faq-item {
        padding: 1.5rem;
    }

    .faq-item h3 {
        font-size: 1.15rem;
    }

    /* Map section */
    .map-container {
        height: 300px;
    }

    /* CTA section */
    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Hero */
    .hero {
        padding: 3rem 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Page header */
    .page-header {
        padding: 2rem 0;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    /* Logo */
    .nav-brand img {
        height: 35px;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-cta .btn {
        padding: 1rem 2rem;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    section h3 {
        font-size: 1.15rem;
    }

    /* Cards */
    .service-card,
    .feature,
    .stat-item,
    .faq-item {
        padding: 1.25rem;
    }

    /* Contact form */
    .contact-form {
        padding: 1.25rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 0 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    /* Map */
    .map-container {
        height: 250px;
    }

    .map-container h3 {
        font-size: 1.1rem;
    }

    .map-container p {
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-content h2 {
        font-size: 1.35rem;
    }

    .page-header h2,
    section h2,
    .cta-section h2 {
        font-size: 1.35rem;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .nav-brand img {
        height: 30px;
    }
}
