:root {
    /* Color Palette */
    --bg-dark: #0b0b10;
    --bg-card: #15151e;
    --primary: #8a2be2;
    /* Blue Violet */
    --primary-light: #a56eff;
    --accent: #00f0ff;
    /* Cyan */
    --text-main: #e0e0e0;
    --text-muted: #a0a0b0;
    --white: #ffffff;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-glow: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, rgba(11, 11, 16, 0) 70%);

    /* Fonts */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-spacing: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.t-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    /* Slightly rounded, almost sharp */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-dark);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    border-color: var(--accent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 11, 16, 0.85);
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

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

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--accent);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    padding: 0 50px;
    position: relative;
    overflow: hidden;
}

/* Background elements for hero */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.glitch {
    position: relative;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Layout Sections */
.section {
    padding: var(--section-spacing) 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title .line {
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 0;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary);
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Portfolio Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-image {
    height: 200px;
    background: #2a2a35;
    /* Placeholder */
    position: relative;
}

/* Placeholder gradient for project images */
.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #1e1e2f, #25253a);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    font-size: 0.8rem;
    color: var(--primary-light);
    background: rgba(138, 43, 226, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding-bottom: 150px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-container p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.email-link {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 40px;
}

.email-link:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Footer */
.footer {
    padding: 30px;
    text-align: center;
    background: rgba(11, 11, 16, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 900;
    }

    .nav.nav-open {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section {
        padding: 80px 20px;
    }

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

    .email-link {
        font-size: 1.5rem;
    }
}

/ *   G l i t c h   E f f e c t   * / 
/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--white);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(38px, 9999px, 86px, 0);
        transform: skew(0.6deg);
    }

    5% {
        clip: rect(32px, 9999px, 5px, 0);
        transform: skew(0.6deg);
    }

    10% {
        clip: rect(6px, 9999px, 66px, 0);
        transform: skew(0.3deg);
    }

    15% {
        clip: rect(34px, 9999px, 3px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(82px, 9999px, 44px, 0);
        transform: skew(0.3deg);
    }

    25% {
        clip: rect(38px, 9999px, 32px, 0);
        transform: skew(0.1deg);
    }

    30% {
        clip: rect(56px, 9999px, 88px, 0);
        transform: skew(0.2deg);
    }

    35% {
        clip: rect(2px, 9999px, 2px, 0);
        transform: skew(0.4deg);
    }

    40% {
        clip: rect(16px, 9999px, 12px, 0);
        transform: skew(0.1deg);
    }

    45% {
        clip: rect(52px, 9999px, 76px, 0);
        transform: skew(0.2deg);
    }

    50% {
        clip: rect(24px, 9999px, 42px, 0);
        transform: skew(0.6deg);
    }

    55% {
        clip: rect(78px, 9999px, 92px, 0);
        transform: skew(0.3deg);
    }

    60% {
        clip: rect(12px, 9999px, 58px, 0);
        transform: skew(0.5deg);
    }

    65% {
        clip: rect(46px, 9999px, 16px, 0);
        transform: skew(0.1deg);
    }

    70% {
        clip: rect(8px, 9999px, 88px, 0);
        transform: skew(0.4deg);
    }

    75% {
        clip: rect(62px, 9999px, 28px, 0);
        transform: skew(0.2deg);
    }

    80% {
        clip: rect(22px, 9999px, 64px, 0);
        transform: skew(0.6deg);
    }

    85% {
        clip: rect(92px, 9999px, 14px, 0);
        transform: skew(0.3deg);
    }

    90% {
        clip: rect(36px, 9999px, 52px, 0);
        transform: skew(0.1deg);
    }

    95% {
        clip: rect(58px, 9999px, 22px, 0);
        transform: skew(0.5deg);
    }

    100% {
        clip: rect(18px, 9999px, 96px, 0);
        transform: skew(0.2deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(12px, 9999px, 52px, 0);
        transform: skew(0.6deg);
    }

    5% {
        clip: rect(48px, 9999px, 16px, 0);
        transform: skew(0.6deg);
    }

    10% {
        clip: rect(82px, 9999px, 6px, 0);
        transform: skew(0.3deg);
    }

    15% {
        clip: rect(24px, 9999px, 92px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(66px, 9999px, 22px, 0);
        transform: skew(0.3deg);
    }

    25% {
        clip: rect(14px, 9999px, 68px, 0);
        transform: skew(0.1deg);
    }

    30% {
        clip: rect(92px, 9999px, 34px, 0);
        transform: skew(0.2deg);
    }

    35% {
        clip: rect(42px, 9999px, 18px, 0);
        transform: skew(0.4deg);
    }

    40% {
        clip: rect(76px, 9999px, 46px, 0);
        transform: skew(0.1deg);
    }

    45% {
        clip: rect(6px, 9999px, 84px, 0);
        transform: skew(0.2deg);
    }

    50% {
        clip: rect(22px, 9999px, 56px, 0);
        transform: skew(0.6deg);
    }

    55% {
        clip: rect(88px, 9999px, 12px, 0);
        transform: skew(0.3deg);
    }

    60% {
        clip: rect(34px, 9999px, 62px, 0);
        transform: skew(0.5deg);
    }

    65% {
        clip: rect(56px, 9999px, 88px, 0);
        transform: skew(0.1deg);
    }

    70% {
        clip: rect(18px, 9999px, 36px, 0);
        transform: skew(0.4deg);
    }

    75% {
        clip: rect(72px, 9999px, 24px, 0);
        transform: skew(0.2deg);
    }

    80% {
        clip: rect(44px, 9999px, 92px, 0);
        transform: skew(0.6deg);
    }

    85% {
        clip: rect(16px, 9999px, 54px, 0);
        transform: skew(0.3deg);
    }

    90% {
        clip: rect(68px, 9999px, 8px, 0);
        transform: skew(0.1deg);
    }

    95% {
        clip: rect(32px, 9999px, 74px, 0);
        transform: skew(0.5deg);
    }

    100% {
        clip: rect(52px, 9999px, 42px, 0);
        transform: skew(0.2deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
    }

    50% {
        box-shadow: 0 0 50px rgba(138, 43, 226, 0.6), 0 0 20px rgba(0, 240, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
    }
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.glow-circle {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite, pulse-glow 4s infinite alternate;
}

/* Shine effect for skill tags */
.skill-tag {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.skill-tag:hover::after {
    left: 150%;
    transition: 0.5s ease-in-out;
}

/* CSS Patterns */

/* Hero Pattern - Cyber Grid */
.hero {
    background-color: #0b0b10;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(11, 11, 16, 0.95), rgba(11, 11, 16, 0.95)),
        linear-gradient(90deg, rgba(138, 43, 226, 0.3) 1px, transparent 1px),
        linear-gradient(rgba(138, 43, 226, 0.3) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    background-position: center;
}

/* Project Card Patterns */
/* Link these to nth-child or specific classes if you have them. Assuming nth-child for now based on previous code */

.project-card:nth-child(1) .project-image {
    background:
        linear-gradient(135deg, #2a2a35 25%, transparent 25%) -50px 0,
        linear-gradient(225deg, #2a2a35 25%, transparent 25%) -50px 0,
        linear-gradient(315deg, #2a2a35 25%, transparent 25%),
        linear-gradient(45deg, #2a2a35 25%, transparent 25%);
    background-size: 100px 100px;
    background-color: #1e1e2f;
}

.project-card:nth-child(2) .project-image {
    background:
        radial-gradient(circle, transparent 20%, #1e1e2f 20%, #1e1e2f 80%, transparent 80%, transparent),
        radial-gradient(circle, transparent 20%, #1e1e2f 20%, #1e1e2f 80%, transparent 80%, transparent) 25px 25px,
        linear-gradient(#00f0ff 2px, transparent 2px) 0 -1px,
        linear-gradient(90deg, #00f0ff 2px, transparent 2px) -1px 0;
    background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
    background-color: #1e1e2f;
}

.project-card:nth-child(3) .project-image {
    background: repeating-linear-gradient(45deg, #2a2a35, #2a2a35 10px, #1e1e2f 10px, #1e1e2f 20px);
}
/* Custom Cursor */
body { cursor: none; }
a, button, .btn, .project-card, input, textarea, .skill-tag { cursor: none; }
#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: 8px; height: 8px; background-color: var(--accent); }
#cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(138, 43, 226, 0.5); transition: width 0.2s, height 0.2s, background-color 0.2s; }
body.hovering #cursor-outline { width: 60px; height: 60px; background-color: rgba(138, 43, 226, 0.1); border-color: var(--accent); }