/* VARIABLES & THEME */
:root {
    --bg-main: #f8fafc;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --glass-bg: rgba(8, 20, 45, 0.05);
    --glass-border: rgba(8, 20, 45, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* UTILITY CLASSES */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.w-full {
    width: 100%;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-purple);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Fits comfortably inside the 80px navbar */
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.nav-btn:hover {
    background: rgba(8, 20, 45, 0.1);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 2000;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0f172a !important;
    transition: 0.3s;
    border-radius: 2px;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 0;
}

.bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(60px);
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 50%;
    filter: blur(30px);
    animation: float 6s ease-in-out infinite;
}

.stats-card {
    position: absolute;
    top: 10%;
    right: -5%;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    animation: float 5s ease-in-out infinite reverse;
}

.stat-icon {
    font-size: 2rem;
    background: rgba(8, 20, 45, 0.1);
    padding: 0.5rem;
    border-radius: 12px;
}

.stat-info h4 {
    font-size: 0.9rem;
    margin: 0;
}

.stat-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: bold;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 450px;
    height: 400px;
    position: relative;
    z-index: 1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* SECTION BACKGROUNDS */
.about-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, #f1f5f9 100%);
}

.services-section {
    background: linear-gradient(180deg, #f1f5f9 0%, var(--bg-main) 100%);
}

.products-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, #f1f5f9 100%);
}

.contact-section {
    background: linear-gradient(180deg, #f1f5f9 0%, var(--bg-main) 100%);
}

/* ABOUT SECTION */
.about-image {
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.experience-badge h3 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--accent-blue);
}

.experience-badge p {
    margin: 0;
    font-size: 0.9rem;
}

.about-visual {
    position: relative;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.check {
    color: var(--accent-blue);
    font-weight: bold;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: rgba(59, 130, 246, 0.15);
}

/* PRODUCTS */
.products-showcase {
    margin-top: 3rem;
}

.product-feature {
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(8, 20, 45, 0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    padding: 4rem 2rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

/* CONTACT */
.contact-section {
    background: var(--bg-secondary);
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.c-icon {
    font-size: 1.5rem;
    padding: 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: var(--accent-blue);
}

.contact-method h4 {
    margin-bottom: 5px;
}

.contact-form-container {
    padding: 3rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(8, 20, 45, 0.05);
    border: 1px solid rgba(8, 20, 45, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.input-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: 0.3s ease;
    pointer-events: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-blue);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.8rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-main);
    padding: 0 0.5rem;
    color: var(--accent-blue);
}

/* FOOTER */
footer {
    padding: 4rem 0 1rem;
    background: #e2e8f0;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 20, 45, 0.05);
    border-radius: 50%;
    transition: 0.3s;
    color: var(--text-primary);
}

.social-icons a:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5% 0;
    text-align: center;
    border-top: 1px solid rgba(8, 20, 45, 0.05);
    font-size: 0.9rem;
}

/* ANIMATIONS & RESPONSIVE */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Scroll Revel Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translate(0);
}

.active.reveal-scale {
    opacity: 1;
    transform: scale(1);
}

.active.reveal-text {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* MEDIA QUERIES */
@media (max-width: 968px) {
    .auto-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 1.5rem auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
        margin-top: 2rem;
    }

    .product-feature {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 2000;
        position: fixed;
        top: 25px;
        right: 5%;
        background: rgba(8, 20, 45, 0.05);
        padding: 5px;
        border-radius: 5px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(248, 250, 252, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .stats-card {
        top: -10%;
        right: 0;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 2rem 1rem;
    }

    .glass-orb {
        width: 200px;
        height: 200px;
    }
}