/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --color-bg:           #f9fafb;
    --color-bg-card:      #ffffff;
    --color-bg-footer:    #f3f4f6;
    --color-bg-skill:     #e5e7eb;
    --color-border:       #e5e7eb;

    --color-text:         #1f2937;
    --color-text-light:   #4b5563;
    --color-text-muted:   #6b7280;
    --color-heading:      #111827;

    --color-accent:       #1e3a8a;
    --color-accent-dark:  #172554;
    --color-tag-bg:       #dbeafe;
    --color-tag-text:     #1e3a8a;

    --font-body:  'Inter', sans-serif;
    --font-title: 'Cantata One', serif;
    --font-hero:  'Montserrat', sans-serif;

    --container-max: 1280px;
    --pad:           1.5rem;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ============================================================
   Layout Helpers
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
    background-color: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem var(--pad);
}

@media (min-width: 768px) {
    .nav {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.nav-logo {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-heading);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.5rem;
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* ============================================================
   Main Content
   ============================================================ */
.main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem var(--pad);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding: 5rem 0;
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-image-wrap {
        width: 33.333%;
    }
}

.hero-portrait {
    border-radius: 50%;
    width: 16rem;
    height: 16rem;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .hero-portrait {
        width: 15rem;
        height: 15rem;
    }
}

.hero-content {
    width: 100%;
}

@media (min-width: 768px) {
    .hero-content {
        width: 66.666%;
    }
}

.hero-title {
    font-family: var(--font-hero);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    max-width: 42rem;
    margin: 0 auto 2rem;
    color: var(--color-text-light);
    font-size: 1.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.2s;
}

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

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

/* ============================================================
   Sections
   ============================================================ */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================================================
   Project Cards Grid
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
      max-width: 1200px; 
    margin: 0 auto; 
}

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

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

/* ============================================================
   Card
   ============================================================ */
.card {
    position: relative;
    background-color: var(--color-bg-card);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    transform: translateY(0);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-tilt {
    height: 100%;
}

.card-tilt .atropos-inner {
    height: 100%;
}

.card-image {
    width: 100%;
    height: 12rem;
    object-fit: contain;
    background-color: var(--color-bg);
}

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size:1.2rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: var(--color-tag-bg);
    color: var(--color-tag-text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.card-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.card-tilt {
    cursor: pointer;
}

/* ============================================================
   Skills
   ============================================================ */
.skills-container {
    max-width: 56rem;
    margin: 0 auto;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-tag {
    background-color: var(--color-bg-skill);
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* ============================================================
   About / My Story
   ============================================================ */
.about-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-light);
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.25rem
}

.about-content p:last-child {
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
    text-align: center;
}

.contact-description {
    max-width: 36rem;
    margin: 0 auto 2rem;
    color: var(--color-text-light);
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-link {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

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

.social-link svg {
    width: 2rem;
    height: 2rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background-color: var(--color-bg-footer);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem var(--pad);
    text-align: center;
    color: var(--color-text-muted);
}

/* ============================================================
   Fade-in Animation
   ============================================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

