:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #6366f1; /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.5);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: flex-start; /* Align logo to left */
    align-items: center;
    z-index: 100;
    /* mix-blend-mode: difference; Removed as it causes visibility issues */
    background: transparent; /* Remove background for cleaner look if requested, or keep it. User said "Just logo is better", maybe transparent is better? Let's stick to previous fix but maybe lighter? User complained about visibility before. Let's keep the fix but maybe minimal. */
    background: rgba(5, 5, 5, 0.0); /* Let's try transparent first as "Just logo" implies minimal. If visibility is bad, we can revert. But wait, user said "Navbar not visible" was a bug. Now they want NO navbar. So maybe transparent is fine if logo is visible. Logo has mix-blend-mode? No. Logo color is text-primary. */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.lang-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 101;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.lang-toggle .divider {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.5;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    /* overflow: hidden; Removed to prevent clipping on small screens */
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex; /* Changed from default to inline-flex */
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Ensure no underline */
    min-width: 140px; /* Ensure minimum width */
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Button Entrance Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta a {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 1.5s; /* Delay to match other animations */
    opacity: 0; /* Start hidden */
}

.hero-cta a:nth-child(2) {
    animation-delay: 1.7s;
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.circle-gradient {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-primary), transparent);
}

/* Sections General */
.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}

.section-title {
    font-size: 2.5rem;
    margin: 0;
}

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

.lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

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

.about-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.profile-img-container {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1) brightness(0.95); /* Reduced grayscale */
    transition: var(--transition);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(5, 5, 5, 0.5)); /* Lighter overlay */
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: var(--transition);
}

.profile-img-container:hover .profile-img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.05);
}

.profile-img-container:hover .img-overlay {
    opacity: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 1000px; /* For 3D tilt effect */
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: translateZ(20px); /* Pop out effect */
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Section */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.project-item:nth-child(even) {
    direction: rtl;
}

.project-item:nth-child(even) .project-content {
    direction: ltr;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.project-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.project-tags li {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow::after {
    content: '→';
    transition: transform 0.3s;
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

.project-visual {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transition: var(--transition);
}

.project-item:hover .visual-placeholder {
    transform: scale(1.05);
    opacity: 1;
}

/* Contact Section */
.contact-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 6rem 2rem;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-text {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 3rem;
}

.email-link {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-family: var(--font-heading);
    font-weight: 700;
    display: block;
    margin-bottom: 3rem;
    color: var(--text-primary) !important;
    position: relative;
    z-index: 10;
}

.email-link:hover {
    color: var(--accent-color) !important;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.social-links a:hover {
    color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
    }
    
    .nav {
        display: none; /* Mobile menu implementation needed if expanded */
    }
    
    .about-grid, .project-item {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-item:nth-child(even) {
        direction: ltr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
