:root {
    --bg-color: #0a0a0c;
    --card-bg: #141419;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00f3ff;
    /* Cyan */
    --accent-secondary: #7000ff;
    /* Purple */
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Rajdhani', sans-serif;
    --transition: all 0.3s ease;
}

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

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 4rem;
    line-height: 1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.primary-btn {
    background-color: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.secondary-btn {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 20px;
}

.secondary-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(100px);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-primary);
}

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

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

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

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(40px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 90px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 100px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 40px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 50px, 0);
    }
}

/* 3D Cube Placeholder */
.cube-container {
    width: 200px;
    height: 200px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--accent-color);
    transform: rotateX(45deg) rotateY(45deg);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
    animation: rotate 10s infinite linear;
}

@keyframes rotate {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Sections */
.section {
    padding: 6rem 10%;
}

.alt-bg {
    background-color: #0f0f12;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--accent-color);
}

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

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

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

.card-image {
    height: 200px;
    background: #222;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #222, #333);
}

.card-content {
    padding: 1.5rem;
}

.tech-stack {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Contact */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-container p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: #050506;
    color: #555;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

#modalBody h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

#modalBody .modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 243, 255, 0.2);
}

#modalBody .tech-stack {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#modalBody p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

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

    .placeholder-img {
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, #222, #333);
    }

    .card-content {
        padding: 1.5rem;
    }

    .tech-stack {
        color: var(--accent-color);
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .card-content p {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

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

    .about-text p {
        margin-bottom: 1.5rem;
        color: var(--text-secondary);
        font-size: 1.1rem;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }

    .skill-item span {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        font-family: var(--font-display);
    }

    .progress-bar {
        width: 100%;
        height: 6px;
        background: #222;
        border-radius: 3px;
        overflow: hidden;
    }

    .progress {
        height: 100%;
        background: var(--accent-color);
        box-shadow: 0 0 10px var(--accent-color);
    }

    /* Contact */
    .contact-container {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .contact-container p {
        margin-bottom: 2rem;
        color: var(--text-secondary);
    }

    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 1rem;
        background: var(--card-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        font-family: var(--font-main);
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        outline: none;
        border-color: var(--accent-color);
    }

    /* Footer */
    footer {
        padding: 2rem;
        text-align: center;
        background: #050506;
        color: #555;
        font-size: 0.9rem;
    }

    /* Modal */
    .modal {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 9999 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
    }

    .modal.hidden {
        display: none !important;
    }

    .modal-content {
        background: var(--card-bg);
        border: 1px solid var(--accent-color);
        max-width: 800px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        padding: 2rem;
        box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
    }

    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-secondary);
        transition: var(--transition);
    }

    .modal-close:hover {
        color: var(--accent-color);
    }

    #modalBody h2 {
        color: var(--accent-color);
        margin-bottom: 1rem;
    }

    #modalBody .modal-image {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        margin-bottom: 1.5rem;
        border: 2px solid rgba(0, 243, 255, 0.2);
    }

    #modalBody .tech-stack {
        color: var(--accent-color);
        font-weight: 600;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    #modalBody p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    }

    /* Responsive */
    @media (max-width: 768px) {
        h1 {
            font-size: 3rem;
        }

        .hero {
            flex-direction: column;
            justify-content: center;
            text-align: center;
            padding-top: 80px;
        }

        .hero-content {
            margin-bottom: 3rem;
        }

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

        .nav-links {
            display: none;
        }

        /* Mobile menu to be implemented */
        .modal-content {
            max-width: 95%;
            padding: 1.5rem;
        }
    }

    .visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Force modal visibility */
    .modal {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .modal.hidden {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
