:root {
    --bg-color: #0f172a;
    --second-bg-color: #1e293b;
    --text-color: #e2e8f0;
    --main-color: #38bdf8;
    /* Sky blue */
    --accent-color: #a855f7;
    /* Purple */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
    --transition: .3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-color);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

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

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

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--main-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.lang-switch {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.lang-btn {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--main-color);
}

.divider {
    margin: 0 0.5rem;
    color: var(--text-color);
    opacity: 0.5;
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

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

.logo:hover {
    transform: scale(1.05);
}

.navbar a {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-left: 2.5rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: var(--transition);
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.menu-btn {
    font-size: 2rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Hero Section */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

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

.greeting {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 1rem;
    display: block;
}

.hero-content h1 {
    font-size: var(--big-font);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-color), var(--main-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: var(--p-font);
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #94a3b8;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn.primary {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn.primary:hover {
    box-shadow: none;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn.secondary:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--main-color);
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 0 1rem var(--main-color);
}

/* Code Block Visual */
.hero-visual {
    position: relative;
    width: 650px;
    perspective: 1000px;
}

.code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 30px;
    /* Increased padding for height */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    min-height: 350px;
    /* Force minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-visual:hover .code-block {
    transform: rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

pre {
    color: #e2e8f0;
    font-family: 'Consolas', monospace;
    font-size: 1rem;
    /* Increased from 0.9rem (approx 10%) */
    overflow-x: auto;
}

.keyword {
    color: #c678dd;
}

.variable {
    color: #e5c07b;
}

.string {
    color: #98c379;
}

.property {
    color: #e06c75;
}

.boolean {
    color: #56b6c2;
}

/* About Section */
.about {
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: var(--h2-font);
    margin-bottom: 4rem;
}

.section-title .highlight {
    color: var(--main-color);
}

.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.img-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--main-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.2);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

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

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: var(--p-font);
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    gap: 0.5rem;
}

.skill-card:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--main-color);
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 0;
    /* Handled by gap */
}

/* Projects Section */
.projects {
    background: var(--bg-color);
}

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

.project-card {
    position: relative;
    /* For badge positioning */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-img {
    height: 200px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    position: relative;
    overflow: hidden;
}

.project-img .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent);
}

.project-info {
    padding: 2rem;
    padding-bottom: 3.5rem;
    /* Make room for the status badge */
}

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

.project-info p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(56, 189, 248, 0.1);
    color: var(--main-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-links a {
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-links a:hover {
    color: var(--main-color);
}

/* Project Status Styles */
.project-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    top: auto;
    /* Override previous top positioning */
}

/* Active Development */
.project-card.status-dev {
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.project-card.status-dev .status-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid #22c55e;
    animation: pulse-badge 2s infinite;
}

/* Personal Roadmap */
.project-card.status-personal {
    border-color: var(--accent-color);
}

.project-card.status-personal .status-badge {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* Roadmap (New Ideas) */
.project-card.status-roadmap {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.project-card.status-roadmap .status-badge {
    background: rgba(226, 232, 240, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card.status-roadmap .project-links a:last-child,
.project-card.status-personal .project-links a:last-child {
    display: none;
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--main-color);
}

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

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group textarea {
    resize: none;
    height: 150px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    background: var(--bg-color);
}

.footer p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.scroll-top {
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 8px;
    color: var(--bg-color);
    transition: var(--transition);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .hero {
        padding-top: 12rem;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    .hero {
        flex-direction: column-reverse;
        gap: 4rem;
    }

    .hero-content {
        text-align: center;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 400px;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .skills-grid {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 80%;
    }

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

/* ReCAPTCHA */
.g-recaptcha {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    /* Center the captcha */
}

/* Scroll Reveal Animations */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(5px);
    transition: all 1s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}