:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-red: #ff003c;
    --accent-red-dim: #990024;
    --accent-glow: rgba(255, 0, 60, 0.5);
    --border-color: #333;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent-red);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-left: 5px solid var(--accent-red);
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.navbar ul {
    display: flex;
    gap: 40px;
    /* Increased gap for better spacing */
    list-style: none;
    align-items: center;
    /* Ensure vertical alignment */
}

.navbar a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1.5rem;
    /* Increased size for icons */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center icon within the link area */
    width: 40px;
    /* Fixed width for equal spacing */
    height: 40px;
    /* Fixed height */
    position: relative;
    /* For tooltip if needed */
}

.nav-text {
    display: none;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-glow);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    position: relative;
    background: radial-gradient(circle at center, #1a0505 0%, var(--bg-color) 70%);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.subtitle {
    color: var(--accent-red);
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-weight: 600;
}

h1.glitch-text {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
}

.description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 450px;
}

.cta-container {
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: 1px solid var(--accent-red);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn i {
    font-size: 1.2em;
}

.primary-btn {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.primary-btn:hover {
    background: var(--accent-red-dim);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.secondary-btn:hover {
    background: rgba(255, 0, 60, 0.1);
    box-shadow: 0 0 15px var(--accent-glow) inset;
    transform: translateY(-2px);
}

.play-btn {
    background: #000;
    border: 2px solid var(--accent-red);
    font-size: 0.9rem;
}

.play-btn:hover {
    background: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
    height: 200px;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    color: #333;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-image-wrapper:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.tech-stack {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Skills Section */
.skills-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.skill-category,
.skill-tags {
    flex: 1;
    min-width: 300px;
}

.skill-category h3,
.skill-tags h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.skill-bar-container {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    position: relative;
}

.progress-bar .fill {
    height: 100%;
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-glow);
    position: absolute;
    top: 0;
    left: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 5px 15px;
    font-size: 0.9rem;
    cursor: default;
    transition: all 0.2s;
}

.tags span:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Contact Form */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.social-links {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
}

.social-links .links {
    display: flex;
    flex-direction: row;
    /* Horizontal layout for icons */
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    /* Match reference black */
    color: #fff;
    /* Match reference white */
    font-size: 1.5rem;
    transition: all 0.3s;
    border-radius: 12px;
    /* Rounded corners for the diamond */
    transform: rotate(45deg);
    /* Create diamond shape */
    margin: 10px;
    /* Add margin for spacing due to rotation */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-decoration: none !important;
    /* Force remove underline */
}

.social-btn i {
    transform: rotate(-45deg);
    /* Keep icon upright */
}

.social-btn:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    transform: rotate(45deg) scale(1.1);
    /* Keep rotation on hover */
    box-shadow: 0 0 20px var(--accent-glow);
}

footer {
    text-align: center;
    padding: 40px;
    color: #444;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    border-top: 1px solid #111;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .navbar ul {
        display: none;
        /* Mobile menu implementation todo */
    }

    .navbar ul .nav-text {
        display: inline-block;
        margin-left: 10px;
        font-family: var(--font-heading);
        font-size: 1.2rem;
        letter-spacing: 2px;
        font-weight: 600;
    }

    .navbar ul li a {
        width: auto;
        justify-content: flex-start;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--text-primary);
        margin: 5px 0;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    .subtitle,
    .description {
        margin-left: auto;
        margin-right: auto;
    }

    h1.glitch-text {
        font-size: 3rem;
    }

    .cta-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-container .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}