/* ========================================
   JSY Technologies Ltd - Main Stylesheet
   ======================================== */

:root {
    --primary: #00B5E2;
    --primary-dark: #008eb3;
    --secondary: #A0D21B;
    --navy: #1A2F4B;
    --navy-dark: #0F1D2F;
    --white: #FFFFFF;
    --gray-light: #F8FAFC;
    --gray: #94A3B8;
    --text: #334155;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container: 1200px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Font initialization */

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin: 1.5rem 0 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

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

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

/* Accent Text */
.accent {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
    text-decoration-skip-ink: none;
}

.accent-light {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(0, 181, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 181, 226, 0.4);
    background-color: var(--primary-dark);
}

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

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

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

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background: var(--white);
    border-bottom: 1px solid #eff3f8;
}

.header.scrolled {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled .logo-img {
    height: 60px;
}

/* Home page - large centered logo */
.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 180px;
    width: auto;
    display: block;
    margin: 1rem 0;
}

/* Inner pages - smaller horizontal nav */
.header-inner {
    padding: 0.8rem 0;
}

.header-inner .nav {
    flex-direction: row;
    justify-content: space-between;
}

.nav-row {
    flex-direction: row !important;
    justify-content: space-between;
}

.logo-img-small {
    height: 180px;
    width: auto;
    display: block;
}

.header-inner.scrolled .logo-img-small {
    height: 120px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--navy);
}

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

.nav-links .btn {
    color: var(--white);
}

.nav-links .btn:hover {
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    background: var(--white);
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #eff3f8;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--navy);
    padding: 0.5rem 0;
    display: block;
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

/* ========================================
   Hero Section (Home)
   ======================================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #f0f7ff, #ffffff);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.circuit-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(80px);
    opacity: 0.2;
    animation: pulse 8s infinite alternate;
}

.abstract-card {
    position: absolute;
    width: 250px;
    height: 350px;
    background: var(--navy);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 30px 60px -15px rgba(26, 47, 75, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;

}

.card-line {
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.card-line:nth-child(2) {
    width: 70%;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.card-line:nth-child(3) {
    width: 40%;
}

/* ========================================
   Page Hero (Inner Pages)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .accent {
    text-decoration-skip-ink: none;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-header.align-center p {
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   Services Section (Home)
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid #eff3f8;
    border-radius: 24px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(26, 47, 75, 0.08);
    border-color: var(--primary);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================================
   Services Detail (Services Page)
   ======================================== */
.services-detail {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem;
    background: var(--white);
    border: 1px solid #eff3f8;
    border-radius: 24px;
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: 0 20px 40px -10px rgba(26, 47, 75, 0.08);
}

.service-detail-card.reverse {
    direction: rtl;
}

.service-detail-card.reverse>* {
    direction: ltr;
}

.service-detail-icon {
    color: var(--primary);
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-detail-text p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.service-features {
    margin: 1.5rem 0 2rem;
    display: grid;
    gap: 0.8rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
}

.service-features li::before {
    content: '\2713';
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========================================
   About Section
   ======================================== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.about-image {
    height: 400px;
    background: linear-gradient(rgba(26, 47, 75, 0.15), rgba(26, 47, 75, 0.15)),
        url('users.png') center / cover no-repeat;
    border-radius: 30px;
    position: relative;
}

.glass-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-box .stat {
    font-size: 2.5rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.glass-box .label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--navy);
    margin-top: 0.5rem;
}

.check-list {
    margin: 1.5rem 0;
}

.check-list li {
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.check-list li::before {
    content: '\2713';
    color: var(--secondary);
    font-weight: 800;
}

/* ========================================
   Values Section
   ======================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid #eff3f8;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(26, 47, 75, 0.08);
}

.value-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================================
   Approach Steps
   ======================================== */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 0;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.contact-form-wrapper>p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-form-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--navy);
}

.contact-form-page input,
.contact-form-page select,
.contact-form-page textarea {
    width: 100%;
    padding: 1rem;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.contact-form-page input:focus,
.contact-form-page select:focus,
.contact-form-page textarea:focus {
    border-color: var(--primary);
    background: var(--white);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
    background: var(--gray-light);
    border-radius: 20px;
}

.form-success.active {
    display: block;
}

.form-success .success-icon {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.form-success h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--gray);
}

/* Contact Info Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 16px;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-3px);
}

.contact-icon {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.contact-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-value {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--gray);
}

.contact-info-card.highlight {
    background: var(--navy);
    color: var(--white);
}

.contact-info-card.highlight h3 {
    color: var(--white);
}

.contact-info-card.highlight p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.urgent-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Legacy Contact Card (Home) */
.contact-card {
    background: var(--navy);
    padding: 4rem;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-card h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-card p {
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    outline: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.cta-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-card h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--navy-dark);
    padding: 60px 0 30px;
    color: var(--gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links-col h4,
.footer-contact h4 {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-col a {
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ========================================
   Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    .glass-box {
        bottom: 20px;
        right: 20px;
        padding: 1.5rem;
    }

    .approach-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step::after {
        display: none;
    }

    .service-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-card.reverse {
        direction: ltr;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-img {
        height: 100px;
        margin: 0;
    }

    .header-inner .nav {
        justify-content: space-between;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .section {
        padding: 60px 0;
    }

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

    .approach-steps {
        grid-template-columns: 1fr;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cta-card h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

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

    .hero h1 {
        font-size: 1.8rem;
    }

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

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

    .service-detail-card {
        padding: 2rem 1.5rem;
    }
}