/*
================================================================================
SELF-HOSTED FONTS
================================================================================
*/

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-var.woff2') format('woff2');
}

/*
================================================================================
RESET
================================================================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Link reset Removes underline on links etc */
a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/*
================================================================================
VARIABLES
================================================================================
*/

:root {
    --font-color: #023430;
    --primary-color: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --secondary-color: #f0fdf4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --border-radius: 8px;

    /* Font Sizes */
    --font-1: 0.375rem;
    --font-2: 0.5rem;
    --font-3: 0.625rem;
    --font-4: 0.75rem;
    --font-5: 0.875rem;
    --font-6: 1rem;
    --font-7: 1.125rem;
    --font-8: 1.25rem;
    --font-9: 1.375rem;
    --font-10: 1.5rem;
    --font-11: 1.625rem;
    --font-12: 1.75rem;
    --font-13: 1.875rem;
    --font-14: 2rem;
    --font-15: 2.125rem;
    --font-16: 2.25rem;
    --font-17: 3.75rem;
    --font-18: 4.75rem;
    --font-19: 5rem;
    --font-20: 6.25rem;
    --font-150px: 9.375rem;
    --font-200px: 12.5rem;
    --font-300px: 18.75rem;
    --font-21: 25rem;
    --font-22: 37.5rem;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 1.5rem;
    --space-3xl: 2rem;
    --space-4xl: 2.5rem;
    --space-5xl: 3rem;
    --space-6xl: 3.75rem;
    --space-7xl: 5rem;
    --space-8xl: 6.25rem;
    --space-9xl: 8.75rem;
    --space-10xl: 9.75rem;
    --space-xxl: 3rem;
}

/*
================================================================================
LAYOUT
================================================================================
*/

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Hero Layout */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ecfdf5 100%);
    padding: 160px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Layout */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xxl);
    align-items: start;
}

/* Tech Stack Layout */
.tech-stack {
    background: linear-gradient(135deg, #f0fdf4 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

/* Portfolio Layout */
.portfolio {
    padding: var(--space-7xl) 0;
    background: var(--white);
}

.section-heading {
    text-align: center;
    margin-bottom: var(--space-6xl);
}

/* Skills List Layout */
.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

/*
================================================================================
COMPONENTS
================================================================================
*/

/* Header */
header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--font-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}


/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    transition: left 0.3s ease;
    padding-top: 80px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: var(--space-xxl);
    gap: var(--space-xxl);
}

.mobile-nav a {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--gray-200);
    transition: color 0.3s ease;
    font-weight: 500;
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

.mobile-resume-btn {
    background: var(--font-color);
    color: #ffffff !important;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: background 0.3s ease;
}

.mobile-resume-btn:hover {
    background: var(--primary-light);
}

/* Hero Text */
.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.hero-highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
}

/* Buttons */
.btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);


}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Profile Card */
.profile-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 300px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 3rem;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.profile-title {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Section Titles */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    color: var(--font-color);
    font-size: var(--font-16);
    font-weight: 600;
    letter-spacing: 0.0625rem;
    display: block;
    margin-bottom: var(--space-md);
}

.section-heading h3 {
    font-size: var(--font-14);
    font-weight: 700;
    color: var(--font-color);
}

/* About */
.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: var(--space-lg);
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-weight: 500;
}

.skills-list i {
    color: var(--font-color);
    width: 20px;
}

/* Tech Items */
.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.tech-icon {
    width: 76px;
    height: 76px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: var(--space-sm);
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Project Cards */
.project {
    display: flex;
    align-items: center;
    gap: var(--space-7xl);
    margin-bottom: var(--space-8xl);
    padding: var(--space-4xl);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
}

.project.reverse {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0.125rem 0.9375rem rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
}

.project-content {
    flex: 1;
}

.project-content h3 {
    font-size: var(--font-12);
    font-weight: 700;
    margin-bottom: 0;
    color: var(--font-color);
}

.project-content h4 {
    font-size: var(--font-9);
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--font-color);
}

.project-content p {
    font-size: var(--font-9);
    font-weight: 300;
    margin-bottom: var(--space-xl);
    color: var(--font-color);
}

.project-description {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}


/* Footer */
.footer {
    background-color: var(--font-color);
    color: white;
    padding: var(--space-6xl) 0 var(--space-3xl) 0;
    margin-top: var(--space-8xl);
    border-radius: var(--border-radius);
}

.footer-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    text-align: left;
}

.footer-content {
    margin-bottom: var(--space-4xl);
}

.footer-content h3 {
    font-size: var(--font-14);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.footer-content p {
    font-size: var(--font-7);
    margin-bottom: var(--space-2xl);
    color: rgba(255, 255, 255, 0.9);
}

.email-link {
    font-size: var(--font-8);
    color: white;
    text-decoration: none;
    border-bottom: 0.125rem solid transparent;
    transition: border-color 0.3s ease;
}

.email-link:hover {
    border-bottom-color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

.footer-links a {
    width: 3.125rem;
    height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-0.1875rem);
}

.footer-links i {
    font-size: var(--font-10);
    color: white;
}

.footer-bottom {
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
}

.footer-bottom p {
    text-align: center;
    font-size: var(--font-5);
    color: rgba(255, 255, 255, 0.7);
}

/* Key Skills Title */
.key-skills-title {
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

/* Footer CV Link */
.footer-cv-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    padding-right: 6px;
}

/* Footer Contact Links */
.phone-link,
.facetime-link {
    text-decoration: none;
    color: #ffffff;
}

/* Skip to Content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/*
================================================================================
RESPONSIVE / MEDIA QUERIES
================================================================================
*/

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    body {
        padding: var(--space-7xl) var(--space-5xl) 0 var(--space-5xl);
    }

    h1 {
        font-size: 3rem;
    }

    .hero {
        padding: var(--space-6xl) 0;
        align-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
    }

    .hero-text {
        order: 1;
        margin-bottom: var(--space-4xl);
        width: 100%;
    }

    .hero-text p {
        text-align: left;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3xl);
    }

    .project {
        gap: var(--space-3xl);
    }

    .section-title {
        font-size: 27px;
    }
}

@media (max-width: 900px) {
    html {
        font-size: 14px;
    }

    body {
        padding: var(--space-7xl) var(--space-3xl) 0 var(--space-3xl);
    }

    .hero {
        padding: var(--space-6xl) 0;
        align-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
    }

    .hero-text {
        order: 1;
        margin-bottom: var(--space-4xl);
        width: 100%;
    }

    .hero-text p {
        text-align: left;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .section-heading h3 {
        font-size: var(--font-14);
    }

    .section-subtitle {
        font-size: var(--font-12);
    }

    .section-title {
        font-size: var(--font-11);
    }

    #each-project {
        text-align: center;
    }

    .project {
        flex-direction: column;
        gap: var(--space-4xl);
    }

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

    .project-content {
        order: 1;
    }

    .project-image {
        order: 2;
    }

    .project-content h3 {
        font-size: var(--font-10);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    body {
        padding: var(--space-7xl) var(--space-3xl) 0 var(--space-3xl);
    }

    .nav-links,
    .resume-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-content h3 {
        font-size: var(--font-11);
    }
}

@media (max-width: 600px) {
    html {
        font-size: 12px;
    }

    body {
        padding: var(--space-8xl) var(--space-lg) 0 var(--space-lg);
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-lg);
    }

    .nav-links,
    .resume-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    h1 {
        font-size: 2rem;
        text-align: left;
    }

    .hero {
        padding-bottom: 0px;
    }

    .hero-text p {
        font-size: var(--font-6);
        text-align: left;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }

    .tech-icon {
        width: 3.125rem;
        height: 3.125rem;
    }

    .tech-name {
        font-size: var(--font-4);
    }

    .about {
        padding: var(--space-6xl) 0;
    }

    .section-title {
        font-size: var(--font-10);
    }

    .portfolio {
        padding: var(--space-6xl) 0;
    }

    .section-heading {
        margin-bottom: var(--space-4xl);
    }

    .section-heading h3 {
        font-size: var(--font-10);
    }

    .project {
        margin-bottom: var(--space-6xl);
        padding: var(--space-xl);
    }

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

    .project-link {
        justify-content: center;
        width: 100%;
    }

    footer {
        padding: var(--space-4xl) 0 var(--space-xl) 0;
        margin-top: var(--space-6xl);
    }
}