@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #282828;
    --color-surface: #151212;
    --color-primary: #00f3ff;
    --color-secondary: #7000ff;
    --color-accent: #ff0055;
    --color-text: #ffffff;
    --color-text-muted: #858585;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --border-radius: 4px;
    --shadow-deep: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    --shadow-neon: 0 0 20px rgba(0, 243, 255, 0.2);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001; /* Above the menu overlay */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

::-webkit-scrollbar {
    width: 10px;
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
    border-radius: 0;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::selection {
    background: var(--color-primary);
    color: var(--color-bg);
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--color-primary);
    transform: translate(-50%, -50%) rotate(-25deg);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-primary);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 243, 255, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

p {
    margin-bottom: var(--spacing-md);
    max-width: 70ch;
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.btn:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 30px var(--color-primary);
}

.btn:hover::before {
    left: 100%;
}

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 100;
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: rgb(143, 143, 143);
}

.logo img {
    height: 70px;
    width: auto;
    filter: brightness(0.5) drop-shadow(0 0 8px var(--color-primary)) drop-shadow(0 0 15px rgba(0, 243, 255, 0.5));
    transition: var(--transition-fast);
    
}

.logo:hover img {
    filter: brightness(1.4) drop-shadow(0 0 12px var(--color-primary)) drop-shadow(0 0 25px rgba(0, 243, 255, 0.8));
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: 
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 40%),
        linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.9)),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.glitch {
    position: relative;
    color: white;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--color-accent);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--color-secondary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 81px, 0); }
    20% { clip: rect(98px, 9999px, 14px, 0); }
    40% { clip: rect(25px, 9999px, 126px, 0); }
    60% { clip: rect(104px, 9999px, 2px, 0); }
    80% { clip: rect(56px, 9999px, 48px, 0); }
    100% { clip: rect(32px, 9999px, 93px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(4px, 9999px, 43px, 0); }
    40% { clip: rect(88px, 9999px, 20px, 0); }
    60% { clip: rect(7px, 9999px, 114px, 0); }
    80% { clip: rect(35px, 9999px, 62px, 0); }
    100% { clip: rect(11px, 9999px, 86px, 0); }
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(100px) scale(2);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card-3d {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 10px 10px 0 var(--color-secondary), -5px -5px 0 rgba(0, 243, 255, 0.3);
    border-color: var(--color-primary);
    z-index: 10;
}

.card-3d h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.card-3d ul {
    list-style: none;
    color: var(--color-text-muted);
}

.card-3d ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-3d ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.2);
    border: 1px solid var(--color-text-muted);
    transition: var(--transition-smooth);
}

.about-image:hover img {
    filter: grayscale(0%) contrast(1);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    z-index: -1;
    transition: var(--transition-fast);
}

.about-image:hover::after {
    top: 10px;
    left: 10px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: invert(90%) hue-rotate(180deg) contrast(1.2);
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg) 0;
    background: var(--color-surface);
    text-align: center;
}

.footer-info {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

.footer-info span {
    display: block;
    margin-bottom: 0.5rem;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    display: none;
    text-align: center;
    font-weight: bold;
}

.status-message.success {
    display: block;
    color: #25d366;
    border: 1px solid #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.status-message.error {
    display: block;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    background: rgba(255, 0, 85, 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem; 
    }

    .section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2rem; /* Reduced from 2.5rem min */
    }
    
    h2 {
        font-size: 1.75rem;
    }

    .contact-layout {
        gap: 2rem; /* Reduce gap from 4rem */
    }

    .map-container {
        min-height: 300px;
    }
    
    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Class added by JS to show menu */
    .nav-links.active {
        display: flex; 
        animation: slideDown 0.3s ease forwards;
    }
    
    /* Optional: Animate hamburger to X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .about-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    
    /* Ensure custom cursor is hidden on mobile and default cursor is restored */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    
    *, *::before, *::after {
        cursor: auto !important;
    }

    .logo img {
        height: 35px;
        width: auto;
    }

    .footerlogo {
        max-width: 150px; /* Smaller size for mobile devices */
    }
}

.footerlogo {
     filter: brightness(0.5) drop-shadow(0 0 8px var(--color-primary)) drop-shadow(0 0 15px rgba(0, 243, 255, 0.5));
     max-width: 200px; /* Restricts width on desktop */
     height: auto;     /* Maintains aspect ratio */
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}