:root {
    /* Color Palette */
    --color-black: #212226;
    --color-grey-dark: #45474D;
    --color-grey-medium: #AAB1CC;
    --color-grey-light: #E6EAF0;
    --color-white: #FFFFFF;
    --color-surface: #F8F9FC;
    --color-accent: #4285F4;

    /* Typography Scale */
    --font-family-base: 'Google Sans', 'Inter', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;
    --spacing-4xl: 120px;

    /* Container */
    --container-max-width: 1440px;
    --page-margin: 72px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

@media (max-width: 1024px) {
    :root {
        --page-margin: 40px;
        --spacing-3xl: 64px;
        --spacing-4xl: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --page-margin: 24px;
        --spacing-2xl: 40px;
        --spacing-3xl: 48px;
        --spacing-4xl: 64px;
    }
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--page-margin);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-black);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--color-grey-dark);
}

.main-nav {
    display: flex;
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .main-nav {
        gap: var(--spacing-md);
    }
}

.main-nav a {
    position: relative;
    color: var(--color-grey-dark);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: var(--font-weight-regular);
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.main-nav a:hover {
    color: var(--color-black);
}

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

/* Hero Section */
.hero-section {
    padding: calc(var(--spacing-4xl) + 80px) 0 var(--spacing-4xl);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(48px, 8vw, 105px);
    font-weight: var(--font-weight-regular);
    line-height: 0.92;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-black);
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: var(--font-weight-regular);
    line-height: 1.4;
    color: var(--color-grey-dark);
    max-width: 900px;
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    margin-top: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 999px;
    font-size: 17.5px;
    font-weight: var(--font-weight-regular);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--color-black);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    border-color: var(--color-black);
    background: rgba(0, 0, 0, 0.03);
}

.btn:active {
    transform: translateY(0);
}

/* Sections */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-grey-medium);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(32px, 4vw, 54px);
    font-weight: var(--font-weight-regular);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--color-black);
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--color-grey-dark);
}

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

.project-card {
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all var(--transition-base);
    background: var(--color-white);
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--color-surface);
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-number {
    font-size: 14px;
    color: var(--color-grey-medium);
    margin: var(--spacing-lg) var(--spacing-xl) var(--spacing-sm);
}

.project-title {
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    color: var(--color-black);
    margin: 0 var(--spacing-xl) var(--spacing-sm);
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-grey-dark);
    margin: 0 var(--spacing-xl) var(--spacing-md);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: 0 var(--spacing-xl) var(--spacing-md);
}

.tag {
    padding: 6px 12px;
    background: var(--color-surface);
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-grey-dark);
    font-weight: var(--font-weight-medium);
}

.project-links {
    margin: 0 var(--spacing-xl) var(--spacing-xl);
}

.project-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--color-black);
}

/* Skills Section */
.skills-section {
    background: var(--color-white);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.skill-category-title {
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-item {
    padding: 10px 18px;
    background: var(--color-surface);
    border-radius: 8px;
    font-size: 15px;
    color: var(--color-grey-dark);
    transition: all var(--transition-fast);
}

.skill-item:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Experience Section */
.experience-section {
    background: var(--color-surface);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

.timeline-date {
    font-size: 14px;
    color: var(--color-grey-medium);
    font-weight: var(--font-weight-medium);
}

.timeline-title {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
}

.timeline-company {
    color: var(--color-accent);
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
}

.timeline-description {
    color: var(--color-grey-dark);
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: var(--color-white);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.large-text {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    color: var(--color-grey-dark);
    margin-bottom: var(--spacing-md);
}

.body-text {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--color-grey-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: var(--font-weight-medium);
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 14px;
    color: var(--color-grey-medium);
}

/* Contact Section */
.contact-section {
    background: var(--color-surface);
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 32px;
}

.contact-details {
    text-align: left;
}

.contact-label {
    font-size: 13px;
    color: var(--color-grey-medium);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 16px;
    color: var(--color-black);
    font-weight: var(--font-weight-medium);
}

/* Footer */
.main-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-4xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.footer-brand {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links-title {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

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

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Parallax */
.hero-section {
    position: relative;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Selection */
::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}