/* Purenode - Premium IT Services CSS */

:root {
    /* Base Colors - Dark Theme (Default) */
    --clr-bg: #030712;
    --clr-surface: #111827;
    --clr-surface-glass: rgba(17, 24, 39, 0.7);
    --clr-accent: #3b82f6; 
    --clr-logo-accent: #3b82f6;
    --clr-accent-glow: rgba(59, 130, 246, 0.5);
    --clr-text: #f9fafb;
    --clr-text-muted: #9ca3af;
    --clr-white: #ffffff;
    --clr-border: rgba(255, 255, 255, 0.1);
    --clr-surface-tint: rgba(255, 255, 255, 0.03);
    --clr-surface-tint-hover: rgba(255, 255, 255, 0.08);
    
    /* Neon Service Colors */
    --clr-neon-web: #00f2ff;
    --clr-neon-mobile: #00ff88;
    --clr-neon-eco: #ffaa00;
    --clr-neon-saas: #bc13fe;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --grad-dark: linear-gradient(180deg, #030712 0%, #111827 100%);
    
    /* Effects */
    --glass-blur: blur(12px);
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.5);
    --trans-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Layout */
    --container-width: 1240px;
    --section-padding: 100px 0;
}

.light-theme {
    --clr-bg: #ffffff;
    --clr-surface: #ffffff;
    --clr-surface-glass: rgba(255, 255, 255, 0.85);
    --clr-accent: #1e3a8a; /* Dark Navy for light mode */
    --clr-logo-accent: #0f172a; /* Darker Navy for logo */
    --clr-accent-glow: rgba(30, 58, 138, 0.1);
    --clr-text: #0f172a;
    --clr-text-muted: #475569;
    --clr-white: #000000;
    --clr-border: rgba(0, 0, 0, 0.1);
    --clr-surface-tint: rgba(0, 0, 0, 0.03);
    --clr-surface-tint-hover: rgba(0, 0, 0, 0.08);
    --clr-ghost-border: rgba(0, 0, 0, 0.15);
    --clr-ghost-hover: rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

/* Custom Scrollbar for Windows Compatibility */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--clr-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--clr-surface-tint-hover);
    border-radius: 5px;
    border: 1px solid var(--clr-border);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-accent);
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

ul {
    list-style: none;
}

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

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

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--trans-smooth);
}

header.scrolled {
    background: var(--clr-surface-glass);
    backdrop-filter: var(--glass-blur);
    padding: 1rem 0;
    border-bottom: var(--glass-border);
}

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

.logo {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--clr-text);
}

.logo-accent {
    color: var(--clr-logo-accent);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

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

.nav-login {
    margin-right: 0.5rem;
    color: var(--clr-text) !important;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--clr-surface);
    border: 2px solid var(--clr-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--trans-smooth);
    margin-left: 1rem;
    box-shadow: var(--shadow-premium);
    color: var(--clr-text);
}

.theme-toggle:hover {
    border-color: var(--clr-accent);
    transform: scale(1.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--clr-accent);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--grad-primary);
    z-index: 2000;
}

/* Buttons */
.btn-primary {
    background: var(--clr-accent);
    color: var(--clr-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--clr-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--clr-accent-glow);
}

.btn-primary-large {
    display: inline-block;
    background: var(--grad-primary);
    color: var(--clr-white);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary-large {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--clr-ghost-border, rgba(255, 255, 255, 0.2));
    color: var(--clr-text);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 1rem;
    transition: var(--trans-smooth);
}

.btn-secondary-large:hover {
    background: var(--clr-ghost-hover, rgba(255, 255, 255, 0.05));
    border-color: var(--clr-accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* For parallax */
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    transition: var(--trans-smooth);
}

.light-theme .hero {
    background-color: #ffffff;
}

.light-theme .hero-bg img {
    opacity: 0.15;
    filter: grayscale(1) brightness(1.2);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(transparent, var(--clr-bg));
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
}

/* Services */
.services {
    padding: var(--section-padding);
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

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

.service-card {
    border: 1px solid var(--clr-border);
}

.service-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    transition: var(--trans-smooth);
    box-shadow: var(--shadow-premium);
}

.service-web .service-icon-container { box-shadow: 0 0 20px var(--clr-neon-web); border-color: var(--clr-neon-web); color: var(--clr-neon-web); }
.service-mobile .service-icon-container { box-shadow: 0 0 20px var(--clr-neon-mobile); border-color: var(--clr-neon-mobile); color: var(--clr-neon-mobile); }
.service-eco .service-icon-container { box-shadow: 0 0 20px var(--clr-neon-eco); border-color: var(--clr-neon-eco); color: var(--clr-neon-eco); }
.service-saas .service-icon-container { box-shadow: 0 0 20px var(--clr-neon-saas); border-color: var(--clr-neon-saas); color: var(--clr-neon-saas); }

/* Neon Animations */
@keyframes neon-pulse {
    0% { filter: brightness(1) drop-shadow(0 0 2px var(--clr-accent)); }
    100% { filter: brightness(1.3) drop-shadow(0 0 8px var(--clr-accent)); }
}

.progress-fill-neon {
    animation: neon-pulse 2s infinite alternate;
}

/* Premium Login Page */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.15), transparent),
                var(--clr-bg);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.login-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--clr-accent);
    filter: blur(150px);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    opacity: 0.1;
    animation: float 10s infinite alternate;
}

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: var(--clr-surface-tint);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-premium);
    padding: 3.5rem;
    border-radius: 32px;
    z-index: 10;
}

.form-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}

.form-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

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

.form-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: var(--clr-text-muted);
}

.form-group input {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    height: 60px;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    color: var(--clr-text);
    transition: var(--trans-smooth);
}

.form-group input:focus {
    border-color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.btn-submit {
    height: 60px;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.form-footer a {
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.form-footer a:hover {
    border-color: var(--clr-accent);
}

/* Dashboard Specific */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--clr-surface);
    border-right: var(--glass-border);
    padding: 2rem;
}

.dashboard-content {
    padding: 3rem;
}

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

.stat-card {
    background: var(--clr-surface-glass);
    backdrop-filter: var(--glass-blur);
    padding: 1.5rem;
    border-radius: 15px;
    border: var(--glass-border);
}

.service-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    border: var(--glass-border);
    transition: var(--trans-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--clr-surface-tint);
    border-color: var(--clr-accent);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--clr-text-muted);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--clr-surface-tint);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.check-list {
    margin-top: 2rem;
}

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

.check-list li::before {
    content: '✓';
    color: var(--clr-accent);
    font-weight: 700;
}

.about-image-wrapper {
    position: relative;
    padding: 2rem;
}

.glass-card {
    background: var(--clr-surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--clr-border);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
}

.stat {
    margin-bottom: 2rem;
}

.stat:last-child {
    margin-bottom: 0;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-accent);
}

.stat-label {
    color: var(--clr-text-muted);
    font-size: 1rem;
}

/* Contact */
.contact {
    padding: var(--section-padding);
}

.contact-card {
    background: var(--clr-surface-glass);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 4rem;
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
}

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

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    color: var(--clr-text);
    font-family: inherit;
    transition: var(--trans-smooth);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: var(--clr-surface-tint-hover);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--grad-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text);
}

.footer-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-text {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1;
}

.footer-logo-text .logo-accent {
    color: var(--clr-logo-accent);
}

.footer-logo p {
    color: var(--clr-text-muted);
    font-size: 1rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--clr-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    list-style: none;
}

.footer-links a {
    color: var(--clr-text-muted);
    transition: var(--trans-smooth);
}

.footer-links a:hover {
    color: var(--clr-gold, #fbbf24);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--clr-text-muted);
    margin-bottom: 0.8rem;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--clr-border);
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .footer-grid {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    .footer-links ul {
        align-items: center;
    }
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a:hover {
    color: var(--clr-accent);
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
}

/* Mobile Menu & Side Navigation */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-surface-glass);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans-smooth);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* --- WOW Effects --- */

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--clr-text);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 10px var(--clr-accent-glow)); }
    100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px var(--clr-accent)); }
}

/* Custom Cursor */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, .theme-toggle, input, textarea {
        cursor: none;
    }
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--clr-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.custom-cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effects for cursor */
.custom-cursor-dot.hover {
    width: 0;
    height: 0;
}
.custom-cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: var(--clr-accent-glow);
    border-color: transparent;
}

/* Typewriter Cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--clr-accent);
    margin-left: 5px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- End WOW Effects --- */

/* Responsive Overrides */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px; /* Hidden initially */
        width: 300px;
        height: 100vh;
        background: var(--clr-surface);
        backdrop-filter: var(--glass-blur);
        border-left: var(--glass-border);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
        display: flex;
        transition: var(--trans-smooth);
        padding: 4rem 2rem;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero */
    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        margin-top: 2rem;
    }

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

    .btn-secondary-large {
        margin-left: 0;
    }

    /* Grid Adjustments */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-header h2 { font-size: 2.2rem; }

    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none; /* Hide sidebar on mobile or use a different nav */
    }

    .dashboard-content {
        padding: 6rem 1.5rem 2rem;
    }

    /* Tables */
    .glass-card {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    /* Forms */
    .login-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .section-header h2 { font-size: 1.8rem; }
    .login-card h2 { font-size: 2rem; }
}
