/* Import Instrument Sans */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

/* CSS Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --accent-color: rgb(76, 95, 213);
    --accent-hover: rgb(60, 75, 170);
    --card-bg: transparent;
    --font-main: 'Instrument Sans', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(16px, 1vw + 1rem, 18px);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.2;
    border-radius: 4px;
}

.btn-primary {
    color: #ffffff;
    background-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 60px;
}

.grid_5-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
    position: relative;
}

.header {
    grid-column: 1 / 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* z-index: 10; */
    position: relative;
}

.heading_h1 {
    font-size: clamp(4rem, 8vw + 1rem, 8rem);
    font-weight: 540;
    line-height: 0.5;
    letter-spacing: -0.03em;
    margin: 0;
}

.subheading {
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.6;
    color: color-mix(in srgb, currentColor 70%, transparent);
    max-width: 380px;
    margin: 0;
    text-wrap: balance;
}

.button-group {
    grid-column: 1 / 3;
    grid-row: 2;
    display: flex;
    gap: 16px;
    /* z-index: 10; */
    position: relative;
}

.image-ratio_1x1 {
    grid-column: 2 / 6;
    grid-row: 1 / 3;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    z-index: -1;
}

.image_cover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    max-width: 736px;
    height: 894px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-image: url('https://cdn.prod.website-files.com/68fb9560daed27437b3b38ad/690c0b16ffe5c83cc0d6e5b2_aragonai-32e66017-f94f-4170-bf74-9d95827320b6.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.image_cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Skills Banner */
.skills-banner {
    width: 100%;
    overflow: hidden;
    padding: 40px 80px;
    background-color: #f8f8f8;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 40px;
}

.skills-header {
    margin-bottom: 0;
    flex-shrink: 0;
}

.skills-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.skills-track-wrapper {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.skills-track {
    display: flex;
    gap: 2rem;
    width: fit-content;
}

.skills-group {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.skill-pill {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.skill-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Projects Section */
.projects-section {
    padding: 120px 0;
}

.projects-section .container {
    padding: 0 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 60px 40px;
}

.project-card {
    display: block;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-image {
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background-color: #f0f0f0;
    transition: var(--transition);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 0;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--accent-color);
}

.project-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links .btn {
    cursor: pointer;
    pointer-events: none;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    text-align: center;
}

.contact-section .container {
    padding: 0 80px;
}

.contact-text {
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
}

.social-links {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-links a:hover {
    color: var(--text-color);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer .container {
    padding: 0 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid_5-col {
        padding: 0 60px 0 60px;
    }

    .image-ratio_1x1 {
        margin-right: -60px;
    }

    .image_cover {
        max-width: 600px;
        height: 728px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 40px;
    }

    .grid_5-col {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 40px;
    }

    .header {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }

    .heading_h1 {
        font-size: 3.5rem;
    }

    .subheading {
        max-width: 100%;
    }

    .button-group {
        grid-column: 1;
        grid-row: 3;
        justify-content: center;
        margin-top: 0;
    }

    .image-ratio_1x1 {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        margin-right: 0;
    }

    .image_cover {
        max-width: 100%;
        width: 100%;
        height: 600px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 24px;
    }

    .grid_5-col {
        padding: 0 24px;
    }

    .skills-banner {
        padding: 40px 24px;
    }

    .projects-section .container,
    .contact-section .container,
    .footer .container {
        padding: 0 24px;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 60px;
    }

    .grid_5-col {
        gap: 1.5rem;
    }

    .heading_h1 {
        font-size: 2.5rem;
    }

    .subheading {
        font-size: 1rem;
    }

    .image_cover {
        height: 500px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

/* Project Detail Pages */
.project-detail {
    padding-top: 80px;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--text-color);
}

.project-hero {
    padding: 60px 0 40px;
}

.project-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 3rem;
    max-width: 900px;
}

.project-hero-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-section {
    padding: 60px 0;
}

.project-container {
    max-width: 900px;
    padding: 0 80px;
}

.project-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-subsection-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.project-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.project-list {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.project-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.project-image {
    width: 100%;
    margin: 3rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.project-image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.other-projects {
    background-color: #f8f8f8;
    padding: 80px 0;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.other-project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
}

.other-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.other-project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.other-project-card h4 {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .project-container {
        padding: 0 40px;
    }

    .project-hero-title {
        font-size: 2rem;
    }

    .project-section {
        padding: 40px 0;
    }

    .project-section-title {
        font-size: 1.5rem;
    }

    .project-text,
    .project-list li {
        font-size: 1rem;
    }

    .project-image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .project-container {
        padding: 0 24px;
    }

    .project-hero {
        padding: 40px 0 20px;
    }

    .back-link {
        margin-bottom: 1.5rem;
    }
}

/* Additional Project Detail Styles */
.project-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
}

.project-highlight {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impact-item {
    padding: 2rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: var(--transition);
}

.impact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.impact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.impact-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .project-subtitle {
        font-size: 1.2rem;
    }

    .project-highlight {
        font-size: 1.5rem;
    }
}