:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary: #00d2ff;
    --secondary: #9d50bb;
    --accent: #3a7bd5;
    --text-main: #f0f0f0;
    --text-dim: #a0a0a0;
    --nav-bg: rgba(5, 5, 5, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow: rgba(0, 210, 255, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.glow-bg {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100px, 100px);
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary-sm {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover,
.btn-primary-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

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

.hero-content {
    max-width: 700px;
}

.badge {
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float-img 6s ease-in-out infinite;
}

@keyframes float-img {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Projects */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

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

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .p-img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-main);
}

/* Vision AI Placeholder */
.vision-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vision-text {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 4px;
    z-index: 2;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scan 3s linear infinite;
    z-index: 3;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.placeholder-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #1a1a1a, #00d2ff22);
}

/* Skills */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Contact */
.contact-card {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05), rgba(157, 80, 187, 0.05));
    border: 1px solid var(--glass-border);
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
}

.contact-card h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 3.5rem;
    }

    .skills-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }
}