/* Fonts */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Colors - Dark Premium Theme */
    --bg-color: #0a0a0a;
    --surface-color: #121212;
    --surface-light: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #64ffda;
    --accent-glow: rgba(100, 255, 218, 0.2);
    --gradient-1: #64ffda;
    --gradient-2: #7f5af0;

    /* Spacing */
    --section-spacing: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none;
    /* Custom cursor */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-secondary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.highlight {
    color: var(--accent);
}

.navbar {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: -4px;
    left: 0;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.touch-btn {
    padding: 10px 24px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    transition: var(--transition-fast);
}

.touch-btn::after {
    display: none;
}

.touch-btn:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.subtitle {
    font-family: var(--font-body);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-btns {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    z-index: 1;
}

/* Abstract shapes background */
.abstract-shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 8s infinite alternate;
}

.shape-2 {
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: var(--gradient-1);
    opacity: 0.3;
    border-radius: 50%;
    animation: float 6s infinite alternate-reverse;
}

/* Floating Glass Cards */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    color: white;
    width: 160px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: floatCard 6s ease-in-out infinite;
}

.glass-card i {
    font-size: 24px;
    color: var(--accent);
}

.glass-card:nth-child(3) {
    /* Code card */
    top: 20%;
    right: 10%;
}

.glass-card.card-2 {
    bottom: 20%;
    left: 0;
    animation-delay: 1s;
    width: 180px;
}

/* About Section */
.about {
    padding: var(--section-spacing) 0;
    background: var(--surface-color);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.section-line {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: var(--surface-light);
    background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?q=80&w=1000&auto=format&fit=crop');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.image-wrapper:hover .placeholder-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-item {
    background: var(--surface-light);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.skill-item:hover i {
    color: var(--accent);
}

/* Projects Section */
.projects {
    padding: var(--section-spacing) 0;
}

.center {
    text-align: center;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 20px auto 0;
}

.projects-grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    padding: 12px;
    /* Added spacing */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* Rounded corners for the inner image */
}

.img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    background-position: center;
    background-size: cover;
}

.project-card:hover .img-placeholder {
    transform: scale(1.1);
}

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-card:hover .project-links {
    opacity: 1;
}

.icon-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.icon-link:hover {
    background: var(--accent);
}

.project-info {
    padding: 20px 10px;
    /* Adjusted padding */
}

.project-info .category {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-info h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: var(--surface-light);
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    padding: 80px 0 40px;
    background: var(--surface-color);
}

.contact-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 0;
}

.contact-content .title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.contact-item:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 40px);
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 100px 5%;
    }

    .hero-content {
        max-width: 50%;
    }

    .hero-visual {
        width: 400px;
        height: 400px;
    }

    .title {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }

    .navbar.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        margin: 20px 0;
    }

    .menu-btn {
        display: flex;
    }

    /* Menu Button Animation */
    .menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active .bar:nth-child(3) {
        /* Need to add a 3rd bar if not present, but let's stick to 2 bars logic or add one */
        /* Assuming I had 2 bars in HTML, I will edit HTML in next step to add 3rd bar or adjust this */
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Wait, the HTML has 2 bars. Let's make it an X */
    .menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-btn.active .bar:nth-child(2) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 60px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 400px;
        height: 400px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-badge {
        right: 0;
        bottom: -20px;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .glass-card {
        transform: scale(0.8);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}