/* 
    Aplotech - Modern Light Theme
    Premium Design System
*/

:root {
    /* Color Palette - Premium Light */
    --primary: #1192dc;
    --primary-glow: rgba(17, 146, 220, 0.15);
    --secondary: #088edb;
    --accent: #0f91dc;
    --bg-deep: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;

    /* Gradients */
    --grad-main: linear-gradient(135deg, #1192dc 0%, #088edb 100%);
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);

    /* Fonts */
    --font-head: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-max: 1280px;
    --section-pad: 80px;

    /* Shadow System */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 10px 20px -5px rgba(17, 146, 220, 0.2);
}

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

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    background: var(--bg-deep);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-deep);
}

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

/* Grain & Background Effects */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.25;
    animation: orbFloat 25s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: 10%;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(80px, 40px) scale(1.1);
    }
}

/* Custom Cursor */
.cursor {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: multiply;
    /* Adjusted for light mode */
    transition: width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

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

.logo-text {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.logo-text .dot {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--grad-main);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(17, 146, 220, 0.3);
}

.btn-glass {
    background: white;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-glass:hover {
    background: var(--bg-surface);
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--bg-deep);
    color: var(--text-main);
    border: 1px solid var(--primary);
    position: relative;
    overflow: hidden;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: radial-gradient(circle at 70% 30%, rgba(17, 146, 220, 0.03), transparent);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

.hero-content {
    max-width: 850px;
    position: relative;
}

.hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-separator {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
}

/* Services Section */
.services {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(17, 146, 220, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.modern-card {
    background: var(--bg-deep);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.modern-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-lg);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(17, 146, 220, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.modern-card:hover .card-glow {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(17, 146, 220, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.modern-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.service-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Features Section */
.features {
    padding: var(--section-pad) 0;
}

.features-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 1.5rem;
}

.bento-item {
    background-color: var(--bg-surface);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-glow);
}

.bento-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.item-large {
    grid-row: span 2;
    background: linear-gradient(to bottom, rgba(17, 146, 220, 0.05), transparent), var(--bg-surface);
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.bento-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: black;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* CTA Section */
.cta-section {
    padding: var(--section-pad) 0;
    text-align: center;
}

.cta-card {
    background: var(--grad-main);
    border-radius: 40px;
    padding: 3.5rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    background: white;
    color: var(--primary);
}

.btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: var(--bg-surface);
}

/* Contact Section */
.contact {
    padding: var(--section-pad) 0;
    background: linear-gradient(to bottom, transparent, rgba(17, 146, 220, 0.03));
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-content.centered {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-surface);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    font-size: 1.5rem;
}

.contact-form {
    background: white;
    padding: 3.5rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-lg);
}

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

.full-width {
    grid-column: span 2;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s;
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    color: var(--text-dim);
    transition: all 0.3s;
    pointer-events: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group select:focus~label,
.form-group select:valid~label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--primary);
    background: white;
    padding: 0 0.5rem;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--bg-surface);
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.footer-logo .dot {
    color: var(--primary);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    margin-bottom: 60px;
}

.footer-nav {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
}

.loading-text {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--text-main);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
}

.aos-animate[data-aos="fade-up"],
.aos-animate[data-aos="fade-down"],
.aos-animate[data-aos="fade-left"],
.aos-animate[data-aos="fade-right"] {
    transform: translate(0);
}

.aos-animate[data-aos="zoom-in"] {
    transform: scale(1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .features-wrapper {
        grid-template-columns: 1fr;
    }

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

    .footer-nav {
        gap: 3rem;
    }
}

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-separator {
        display: none;
    }

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

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

    .full-width {
        grid-column: span 1;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }

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

    .hero {
        text-align: center;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}