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

:root {
    /* Colors */
    --background: #0a0a0a;
    --foreground: #fafafa;
    --card: #0a0a0a;
    --card-foreground: #fafafa;

    --primary: #22c55e;
    --primary-foreground: #0a0a0a;

    --secondary: #1c1c1c;
    --secondary-foreground: #fafafa;

    --muted: #1c1c1c;
    --muted-foreground: #a3a3a3;

    --accent: #a855f7;
    --accent-foreground: #fafafa;

    --border: #1c1c1c;
    --input: #1c1c1c;

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.6s forwards;
}

.animate-fade-in-more-delayed {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.8s forwards;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 1rem;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    pointer-events: none;
}

.blur-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.blur-circle-1 {
    top: 25%;
    left: 25%;
    background-color: rgba(34, 197, 94, 0.2);
}

.blur-circle-2 {
    bottom: 25%;
    right: 25%;
    background-color: rgba(168, 85, 247, 0.2);
    animation-delay: 1s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: white;
}

.gradient-text {
    display: block;
    background: linear-gradient(to right, #ffffff, #d4d4d4, #737373);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background-color: #fff;
    color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: white;
    color: black;
}

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

.btn-outline:hover {
    background-color: white;
    color: black;
}

.btn-submit {
    width: 100%;
    height: 3.5rem;
    background-color: white;
    color: black;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.125rem;
}

.btn-submit:hover {
    background-color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted-foreground);
    animation: fadeIn 0.5s ease-out 1s forwards;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ===== About Section ===== */
.about {
    padding: 6rem 1rem;
    background-color: var(--background);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
}

.accent {
    color: var(--accent);
}

.divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.summary-text {
    font-size: 1.25rem;
    color: #d4d4d4;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.experience-section,
.education-section {
    margin-top: 3rem;
}

.experience-section h3,
.education-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    border-left: 2px solid #262626;
    padding-left: 1.5rem;
    transition: border-color 0.3s ease;
}

.timeline-item:hover {
    border-left-color: var(--primary);
}

.timeline-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.description {
    color: #a3a3a3;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: #737373;
    border: 1px solid #262626;
    padding: 0.25rem 0.5rem;
}

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

.education-card {
    background-color: rgba(24, 24, 24, 0.5);
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}

.education-card:hover {
    background-color: #171717;
}

.education-card h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.institution {
    color: #737373;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.period {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.875rem;
}

/* ===== Skills Column ===== */
.skills-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-card {
    background-color: #171717;
    padding: 1.5rem;
    border: 1px solid #262626;
    transition: border-color 0.3s ease;
}

.skill-card:hover {
    border-color: var(--accent);
}

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

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    color: white;
    border: 1px solid #404040;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: default;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background-color: white;
    color: black;
}

.skill-card-accent {
    background-color: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.accent-title {
    color: var(--accent);
}

/* ===== Projects Section ===== */
.projects {
    padding: 6rem 1rem;
    background-color: #030303;
    position: relative;
    overflow: hidden;
}

.projects-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, #171717, transparent);
    pointer-events: none;
}

.projects-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .projects-header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

.projects-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.gradient-text-inline {
    background: linear-gradient(to right, var(--primary), #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-subtitle {
    color: #a3a3a3;
    max-width: 400px;
    text-align: right;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .projects-subtitle {
        margin-top: 0;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #262626;
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
}

.project-image {
    height: 200px;
    background-color: #171717;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, black, transparent);
    z-index: 1;
}

.project-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(115, 115, 115, 0.2);
    transition: all 0.7s ease;
}

.project-card:hover .project-number {
    opacity: 0.4;
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--primary);
}

.project-role {
    font-size: 1.125rem;
    color: #a3a3a3;
    margin-bottom: 1rem;
}

.project-description {
    color: #d4d4d4;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

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

.stack-tag {
    background-color: #171717;
    color: var(--primary);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.75rem;
    border: 1px solid #262626;
}

.project-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #171717;
}

.project-footer .btn {
    flex: 1;
}

.project-card-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #262626;
    min-height: 400px;
}

.project-card-coming-soon p {
    color: #737373;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    text-transform: uppercase;
}

/* ===== Contact Section ===== */
.contact {
    padding: 6rem 1rem;
    background-color: var(--background);
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.text-stroke {
    -webkit-text-stroke: 2px white;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #a3a3a3;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.contact-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

@media (min-width: 768px) {
    .contact-link {
        font-size: 2rem;
    }
}

.contact-link:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
}

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

.form-input {
    background-color: rgba(24, 24, 24, 0.5);
    border: 1px solid #262626;
    padding: 0.75rem 1rem;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #525252;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.form-textarea {
    background-color: rgba(24, 24, 24, 0.5);
    border: 1px solid #262626;
    padding: 0.75rem 1rem;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    min-height: 150px;
    resize: none;
    transition: all 0.3s ease;
}

.form-textarea::placeholder {
    color: #525252;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* ===== Footer ===== */
.footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #171717;
    color: #525252;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .projects-header h2 {
        text-align: left;
    }

    .projects-subtitle {
        text-align: left;
    }

    .project-footer {
        flex-direction: column;
    }
}
