/* ===================================================================
   Sohel Online Zone — Main Stylesheet
   =================================================================== */

/* ===== Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0e7490;
    --primary-light: #22d3ee;
    --primary-dark: #064e5e;
    --accent: #06b6d4;
    --bg: #f8fbfd;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --whatsapp: #25d366;
    --footer-bg: #0f172a;
    --shadow: 0 4px 24px rgba(14, 116, 144, 0.08);
    --shadow-hover: 0 8px 32px rgba(14, 116, 144, 0.16);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* ===== Loading Spinner ===== */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(14, 116, 144, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(14, 116, 144, 0.06);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(14, 116, 144, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f0fdfa 0%, #e0f7fa 30%, #ffffff 60%, #ecfeff 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    top: -120px;
    right: -120px;
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
    pointer-events: none;
}

/* Hero Two-Column Layout */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(14, 116, 144, 0.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 0 20px;
    font-weight: 400;
}

.hero .description {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 580px;
    margin: 0 0 28px;
    line-height: 1.85;
}

/* ===== Personal Info Card ===== */
.hero-info-card {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.06), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 12px;
    padding: 14px 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(14, 116, 144, 0.06);
    animation: slideUp 0.8s ease-out 0.5s both;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.2;
}

.info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
}

.info-divider {
    width: 1px;
    height: 36px;
    background: rgba(14, 116, 144, 0.15);
    margin: 0 20px;
}

/* ===== Hero Profile Image ===== */
.hero-image-wrapper {
    flex-shrink: 0;
    animation: fadeIn 1s ease-out 0.3s both;
}

.hero-image-container {
    width: 340px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 116, 144, 0.12);
    box-shadow: 0 8px 40px rgba(14, 116, 144, 0.12), 0 2px 12px rgba(6, 182, 212, 0.08);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-image-container:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 48px rgba(14, 116, 144, 0.18), 0 4px 16px rgba(6, 182, 212, 0.12);
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 38px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.4);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ===== Section Common ===== */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

.section-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    margin: 0 auto 16px;
}

/* ===== Services ===== */
.services {
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(14, 116, 144, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card ul li {
    font-size: 0.95rem;
    color: var(--text-light);
    padding-left: 18px;
    position: relative;
}

.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== About ===== */
.about {
    background: linear-gradient(170deg, #ecfeff 0%, #f8fbfd 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 24px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== Contact ===== */
.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: #f8fafc;
    border: 1.5px solid rgba(14, 116, 144, 0.12);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.35);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(37, 211, 102, 0.1);
    color: #16a34a;
    border: 1px solid rgba(37, 211, 102, 0.2);
    animation: fadeUp 0.4s ease;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: fadeUp 0.4s ease;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.contact-item-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-item-text p,
.contact-item-text a {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color var(--transition);
}

.contact-item-text a:hover {
    color: var(--primary);
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: #fff;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), background var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    transition: fill var(--transition);
}

.social-link:hover svg {
    fill: #fff;
}

/* Map */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(14, 116, 144, 0.08);
    min-height: 200px;
    margin-top: 20px;
}

.map-container iframe {
    width: 100%;
    height: 280px;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background: var(--footer-bg);
    padding: 40px 0 28px;
    text-align: center;
}

.footer-logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin-bottom: 8px;
}

.footer p {
    font-size: 0.88rem;
    color: rgba(241, 245, 249, 0.5);
    line-height: 1.6;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: rgba(6, 182, 212, 0.3);
    border-radius: 2px;
    margin: 18px auto;
}

/* ===== Floating WhatsApp ===== */
.fab-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fabPulse 2.5s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.5);
    animation: none;
}

.fab-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 36px rgba(37, 211, 102, 0.65);
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 36px;
    }

    .hero-content {
        text-align: center;
    }

    .hero .tagline,
    .hero .description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-container {
        width: 280px;
        height: 340px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 32px 40px;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav-overlay.open {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-image-container {
        width: 260px;
        height: 310px;
    }

    .hero-info-card {
        padding: 12px 18px;
    }

    .info-divider {
        margin: 0 14px;
        height: 30px;
    }

    .section {
        padding: 64px 0;
    }

    .contact-form {
        padding: 28px 22px;
    }

    .fab-whatsapp {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }

    .fab-whatsapp svg {
        width: 26px;
        height: 26px;
    }
}