:root {
    --bg-color: #050505;
    --card-bg: #111;
    --text-color: #e0e0e0;
    --accent-cyan: #00f3ff;
    --accent-green: #0aff00;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-cyan);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-green);
    transition: width 0.2s, height 0.2s, top 0.1s, left 0.1s;
}



/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    /* Circle crop for the logo */
    object-fit: cover;
    border: 2px solid white;
    background: white;
    /* Ensure background is white if transparent */
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
}

.highlight {
    color: var(--accent-cyan);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-green);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    border: 1px solid var(--accent-cyan);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--accent-cyan) !important;
}

.cta-btn:hover {
    background: var(--accent-cyan);
    color: black !important;
}

/* Contact Section Updates */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.contact-info p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-green);
}

.contact-details {
    margin: 30px 0;
    padding: 20px;
    border-left: 3px solid var(--accent-green);
    background: rgba(255, 255, 255, 0.05);
}

.social-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #0077b5;
    /* LinkedIn Color */
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
}

.social-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.contact-form {
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        gap: 40px;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    background-image: url('assets/hero-bg-eye.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

/* Dark overlay to ensure text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.75);
    /* Stronger dimming */
    z-index: 0;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content, on top of overlay */
    opacity: 0.4;
    /* Blend with background */
    mix-blend-mode: screen;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Glitch Effect - Simple CSS adaptation */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(100px, 9999px, 140px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 120px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(120px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(100px, 9999px, 50px, 0);
    }
}

.hero-tagline {
    font-size: 2.2rem;
    font-weight: 300;
    font-style: italic;
    color: white;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    letter-spacing: 3px;
    background: linear-gradient(90deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 40px;
}

.primary-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-cyan);
    transition: var(--transition);
    z-index: -1;
}

.primary-btn:hover {
    color: black;
}

.primary-btn:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    width: 20px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background: white;
    margin: 5px auto;
    border-radius: 50%;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    margin-top: 10px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ccc;
}

/* Abstract Chip Visual */
.chip-visual {
    width: 300px;
    height: 300px;
    border: 2px solid #333;
    position: relative;
    margin: 0 auto;
    background: #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #111;
    border: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.sensor {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 5px 10px;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 0.8rem;
}

.path {
    position: absolute;
    background: #333;
    z-index: 0;
    overflow: hidden;
}

.path::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: flow 2s infinite linear;
}

.p1 {
    width: 100px;
    height: 2px;
    top: 50%;
    left: 0;
}

.p2 {
    width: 2px;
    height: 100px;
    top: 0;
    left: 50%;
}

.p3 {
    width: 150px;
    height: 2px;
    bottom: 30%;
    right: 0;
    transform: rotate(45deg);
}

@keyframes flow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Services Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid #222;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: white;
}

.card p {
    color: #aaa;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background: #151515;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Simplify for now */
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}