@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0b;
    --accent-indigo: #6366f1;
    --accent-glow: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --radius-lg: 32px;
    --radius-sm: 16px;
    --transition-premium: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
}

.logo span {
    color: var(--accent-indigo);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-premium);
}

.nav-links a:hover {
    color: white;
}

/* --- Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- About-First Hero --- */
.about-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.about-hero-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #111;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.image-overlay-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 40%);
    pointer-events: none;
}

.about-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1;
    margin: 20px 0;
}

.accent-glow {
    color: var(--accent-indigo);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 30px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 40px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition-premium);
}

.btn-primary {
    background: var(--accent-indigo);
    color: white;
    margin-right: 20px;
}

.btn-secondary {
    border: 1px solid var(--card-border);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* --- Skills Section --- */
.skills-section {
    padding: 150px 0;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 40px;
    transition: var(--transition-premium);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-card i {
    width: 40px;
    height: 40px;
    color: var(--accent-indigo);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Education & Experience Sections --- */
.education-section,
.experience-section {
    padding-bottom: 120px;
}

.exp-date {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

.edu-meta {
    font-size: 0.8rem;
    color: var(--accent-indigo);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

/* --- Projects Section --- */
.projects-section {
    padding-bottom: 150px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.project-item {
    width: 65%;
}

.offset-right {
    align-self: flex-end;
}

.project-card-inner {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-details {
    padding: 40px;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

/* --- Contact Section --- */
.contact-section {
    padding-bottom: 100px;
}

.contact-wrapper {
    background: linear-gradient(135deg, #101014 0%, #050505 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 80px;
    text-align: center;
}

.contact-big-link {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 8vw, 5rem);
    color: white;
    text-decoration: none;
    font-weight: 800;
    display: block;
    margin: 40px 0;
    transition: color 0.3s;
}

.contact-big-link:hover {
    color: var(--accent-indigo);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3D Depth Utilities --- */
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.tilt-3d:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .about-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-hero-visual {
        width: 70%;
        margin: 0 auto;
    }

    .about-description {
        margin: 0 auto 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-item {
        width: 100%;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .education-item {
        margin-left: 0 !important;
    }
}

@media (max-width: 600px) {
    .about-hero-visual {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 40px 20px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.7rem;
    }
}