:root {
    /* Color Palette - Premium Dark Theme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --accent-primary: #ff1f1f;
    /* Neon Red */
    --accent-secondary: #991b1b;
    /* Deep Red */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --glass-bg: rgba(20, 0, 0, 0.6);
    --glass-border: rgba(255, 31, 31, 0.15);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;

    /* Bento Spacing */
    --bento-gap: 20px;
    --border-radius: 24px;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    transition: all 0.2s ease-out;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a0505 0%, #000000 100%);
    /* Deep dark red to black radial */
}

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

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

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

ul {
    list-style: none;
}

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

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Header/Nav */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 1000;
    border-radius: 50px;
    padding: 10px 30px;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-primary);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--section-padding);
    background: radial-gradient(circle at 50% 50%, rgba(255, 31, 31, 0.05) 0%, transparent 60%);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-button {
    padding: 15px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(255, 31, 31, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 31, 31, 0.5);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: var(--bento-gap);
    margin-top: 50px;
}

.bento-card {
    padding: 40px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-smooth);
}

.bento-main {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-skills {
    grid-column: span 2;
}

.bento-stat {
    grid-column: span 1;
    align-items: center;
    text-align: center;
}

.bento-tech {
    grid-column: span 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 3D Tilt Effect Placeholder */
.hover-tilt {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-main,
    .bento-skills,
    .bento-stat,
    .bento-tech {
        grid-column: span 1;
    }
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-tag {
    background: var(--bg-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid var(--glass-border);
    font-weight: 500;
}

/* Project Cards Enhancement */
.project-card {
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.project-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 31, 31, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-logo {
    margin-bottom: 15px;
}

.project-logo img {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-card p {
    color: var(--text-secondary);
}

/* Contact Section */
#contact {
    padding: 100px 20px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 31, 31, 0.2);
}

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .social-links {
        justify-content: center !important;
    }
}

/* Footer Styles */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
}

/* Social Icons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 31, 31, 0.3);
}