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

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #6366f1;
    --text-dark: #000000;
    --text-medium: #333333;
    --text-light: #555555;
    --text-lighter: #777777;
    --background-light: #fafafa;
    --background-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Custom property for real viewport height on mobile */
    --vh: 1vh;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--text-dark);
    color: var(--background-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced Focus Indicators */
*:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Remove default focus for mouse users, keep for keyboard users */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-resume-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--background-white) !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-resume-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: var(--background-white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--background-white);
    padding: 6rem 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-large-text {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.title-word {
    display: block;
    position: relative;
    opacity: 0;
    transform: translateY(100px);
    animation: slideInUp 1s ease-out forwards;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.3s; }
.title-word:nth-child(3) { animation-delay: 0.4s; }

.title-word.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-subtitle p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.scroll-hint span {
    font-size: 0.9rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--text-lighter);
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--text-lighter);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

/* Background Elements */
.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.05);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: -4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: -1s;
}

/* Manifesto Sections */
.manifesto-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.manifesto-section.alt {
    background: var(--background-light);
}

.manifesto-content {
    text-align: center;
}

.manifesto-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.manifesto-word {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
}

.manifesto-word:nth-child(1) { animation-delay: 0.1s; }
.manifesto-word:nth-child(2) { animation-delay: 0.2s; }
.manifesto-word:nth-child(3) { animation-delay: 0.3s; }

.manifesto-word.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.manifesto-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.6;
}

.cta-section {
    margin-top: 3rem;
}

.cta-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--text-dark);
    color: var(--background-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Manifesto Background Elements */
.manifesto-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.triangle-shape {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.08;
    animation: triangleFloat 8s ease-in-out infinite;
}

.triangle-1 {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 60px solid var(--accent-color);
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.triangle-2 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 45px solid rgba(139, 92, 246, 0.6);
    top: 70%;
    right: 15%;
    animation-delay: -2s;
    transform: rotate(45deg);
}

.triangle-3 {
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid rgba(5, 150, 105, 0.6);
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
    transform: rotate(120deg);
}

.triangle-4 {
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 50px solid rgba(236, 72, 153, 0.6);
    top: 40%;
    right: 25%;
    animation-delay: -1s;
    transform: rotate(180deg);
}

.angular-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    animation: angularFloat 6s ease-in-out infinite;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.angular-1 {
    background: var(--accent-color);
    top: 20%;
    left: 8%;
    animation-delay: 0s;
    transform: rotate(30deg);
}

.angular-2 {
    background: rgba(139, 92, 246, 0.8);
    top: 60%;
    right: 12%;
    animation-delay: -1.5s;
    transform: rotate(90deg);
    width: 45px;
    height: 45px;
}

.angular-3 {
    background: rgba(5, 150, 105, 0.8);
    bottom: 25%;
    left: 25%;
    animation-delay: -3s;
    transform: rotate(150deg);
    width: 50px;
    height: 50px;
}

.angular-4 {
    background: rgba(236, 72, 153, 0.8);
    top: 35%;
    right: 30%;
    animation-delay: -0.8s;
    transform: rotate(270deg);
    width: 40px;
    height: 40px;
}

/* Work Section */
.work-section {
    padding: 8rem 0;
    background: var(--background-white);
}

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

.section-title {
    margin-bottom: 1rem;
}

.section-number {
    display: block;
    font-size: 0.9rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.section-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
}

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

.see-all-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.see-all-link:hover {
    border-bottom-color: var(--accent-color);
}

/* Projects Grid - Redesigned */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Desktop: 2 columns for larger screens */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 3rem;
        max-width: 1200px;
    }
}

.project-item {
    display: block;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    text-decoration: none;
    color: inherit;
}

.project-item:hover {
    transform: translateY(-2px);
}

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

.project-content {
    display: block;
}

.project-visual {
    width: 100%;
    height: 300px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--background-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.project-image-placeholder:hover {
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.05);
}

.placeholder-text {
    font-size: 1rem;
    color: var(--text-lighter);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-type {
    font-size: 0.75rem;
    color: var(--background-white);
    background: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

.project-year {
    font-size: 0.85rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.project-tools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool {
    padding: 0.25rem 0.75rem;
    background: var(--background-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-medium);
    border: 1px solid var(--border-color);
}

/* Project Image Styles */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.02);
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: var(--background-light);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.services-list h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.services-grid-minimal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.service-item {
    padding: 0.6rem 1.2rem;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: var(--accent-color);
    color: var(--background-white);
    border-color: var(--accent-color);
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: var(--background-white);
    position: relative;
    overflow: hidden;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.contact-word {
    display: block;
}

.contact-word.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--background-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

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

.btn-resume {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--background-white);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-resume:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-detail {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.detail-value {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.detail-value:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

/* Motion Shapes */
.motion-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.motion-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    animation: callMotion 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.shape-a {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    background: rgba(99, 102, 241, 0.12);
    animation: callMotionA 4s ease-in-out infinite;
}

.shape-b {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 10%;
    animation-delay: -1s;
    background: rgba(139, 92, 246, 0.1);
    animation: callMotionB 4s ease-in-out infinite;
}

.shape-c {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: -2s;
    background: rgba(5, 150, 105, 0.08);
    animation: callMotionC 4s ease-in-out infinite;
}

.shape-d {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation-delay: -0.5s;
    background: rgba(236, 72, 153, 0.08);
    animation: callMotionD 4s ease-in-out infinite;
}

.shape-e {
    width: 90px;
    height: 90px;
    top: 20%;
    left: 50%;
    animation-delay: -1.5s;
    background: rgba(245, 158, 11, 0.1);
    animation: callMotionE 4s ease-in-out infinite;
}

/* Contact Background Elements */
.contact-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.contact-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.06;
    animation: contactTriangleFloat 10s ease-in-out infinite;
}

.triangle-a {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 70px solid var(--accent-color);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.triangle-b {
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 55px solid rgba(139, 92, 246, 0.7);
    top: 75%;
    right: 8%;
    animation-delay: -2.5s;
    transform: rotate(60deg);
}

.triangle-c {
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-bottom: 45px solid rgba(5, 150, 105, 0.7);
    bottom: 15%;
    left: 15%;
    animation-delay: -5s;
    transform: rotate(135deg);
}

.triangle-d {
    border-left: 42px solid transparent;
    border-right: 42px solid transparent;
    border-bottom: 65px solid rgba(236, 72, 153, 0.7);
    top: 45%;
    right: 20%;
    animation-delay: -1.2s;
    transform: rotate(200deg);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--background-white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--background-white);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Call Motion Animations - 4 second cycles */
@keyframes callMotionA {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-15px) translateX(40px) scale(0.8);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-45px) translateX(10px) scale(1.1);
        opacity: 0.18;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.12;
    }
}

@keyframes callMotionB {
    0% {
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(25px) translateX(-15px) scale(1.3) rotate(90deg);
        opacity: 0.18;
    }
    50% {
        transform: translateY(-10px) translateX(-30px) scale(0.9) rotate(180deg);
        opacity: 0.12;
    }
    75% {
        transform: translateY(35px) translateX(-5px) scale(1.1) rotate(270deg);
        opacity: 0.16;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1) rotate(360deg);
        opacity: 0.1;
    }
}

@keyframes callMotionC {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.08;
        border-radius: 50%;
    }
    25% {
        transform: translateY(-20px) translateX(25px) scale(1.4);
        opacity: 0.15;
        border-radius: 30%;
    }
    50% {
        transform: translateY(10px) translateX(-10px) scale(0.7);
        opacity: 0.1;
        border-radius: 60%;
    }
    75% {
        transform: translateY(-35px) translateX(15px) scale(1.2);
        opacity: 0.13;
        border-radius: 40%;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.08;
        border-radius: 50%;
    }
}

@keyframes callMotionD {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.08;
    }
    20% {
        transform: translateY(-40px) translateX(-20px) scale(0.6);
        opacity: 0.05;
    }
    40% {
        transform: translateY(-20px) translateX(-40px) scale(1.5);
        opacity: 0.2;
    }
    60% {
        transform: translateY(20px) translateX(-15px) scale(0.8);
        opacity: 0.1;
    }
    80% {
        transform: translateY(-10px) translateX(-30px) scale(1.3);
        opacity: 0.15;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.08;
    }
}

@keyframes callMotionE {
    0% {
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0.1;
    }
    30% {
        transform: translateY(-25px) translateX(30px) scale(1.1) rotate(120deg);
        opacity: 0.18;
    }
    60% {
        transform: translateY(15px) translateX(-20px) scale(0.9) rotate(240deg);
        opacity: 0.12;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1) rotate(360deg);
        opacity: 0.1;
    }
}

/* New Background Element Animations */
@keyframes triangleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.08;
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(90deg);
        opacity: 0.12;
    }
    50% {
        transform: translateY(-10px) translateX(-20px) rotate(180deg);
        opacity: 0.06;
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(270deg);
        opacity: 0.1;
    }
}

@keyframes angularFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(30deg) scale(1);
        opacity: 0.1;
    }
    33% {
        transform: translateY(-25px) translateX(20px) rotate(150deg) scale(1.2);
        opacity: 0.15;
    }
    66% {
        transform: translateY(15px) translateX(-15px) rotate(270deg) scale(0.8);
        opacity: 0.08;
    }
}

@keyframes contactTriangleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.06;
    }
    20% {
        transform: translateY(-35px) translateX(25px) rotate(72deg) scale(1.1);
        opacity: 0.1;
    }
    40% {
        transform: translateY(-15px) translateX(-30px) rotate(144deg) scale(0.9);
        opacity: 0.04;
    }
    60% {
        transform: translateY(-45px) translateX(10px) rotate(216deg) scale(1.3);
        opacity: 0.08;
    }
    80% {
        transform: translateY(-20px) translateX(-10px) rotate(288deg) scale(0.7);
        opacity: 0.05;
    }
}

/* Responsive Design */

/* Tablet Landscape (1024px and down) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(4rem, 10vw, 10rem);
    }
    
    .manifesto-title {
        font-size: clamp(2.5rem, 7vw, 7rem);
    }
    
    .section-main {
        font-size: clamp(2rem, 5vw, 4rem);
    }
    
    .projects-grid {
        gap: 2.5rem;
    }
    
    .project-visual {
        height: 250px;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
}

/* Tablet Portrait (768px and down) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(20px);
        padding: 3rem 0;
        gap: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-resume-item {
        padding: 1rem 0;
        text-align: center;
        border-bottom: none;
    }
    
    .nav-resume-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        margin: 0.5rem 0;
    }
    
    /* Typography */
    .hero-title {
        font-size: clamp(3rem, 12vw, 8rem);
        line-height: 0.95;
        margin-bottom: 1.5rem;
    }

    .manifesto-title {
        font-size: clamp(2.5rem, 10vw, 6rem);
        line-height: 0.95;
    }

    .contact-title {
        font-size: clamp(2rem, 8vw, 4.5rem);
        line-height: 1;
    }
    
    .section-main {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    /* Hero Section */
    .hero {
        padding: 5rem 0 4rem;
        min-height: 90vh;
    }
    
    .hero-subtitle {
        margin-bottom: 3rem;
    }
    
    .hero-subtitle p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    /* Manifesto Sections */
    .manifesto-section {
        padding: 6rem 0;
    }
    
    .manifesto-description {
        font-size: 1.1rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
    
    /* Work Section */
    .work-section,
    .about-section,
    .contact-section {
        padding: 6rem 0;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }

    .projects-grid {
        gap: 2rem;
    }

    .project-visual {
        height: 220px;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-meta {
        justify-content: space-between;
    }
    
    .project-image-placeholder {
        width: 100px;
        height: 70px;
    }
    
    .project-tools {
        justify-content: center;
    }

    /* About Section */
    .about-content {
        text-align: center;
    }
    
    .about-intro {
        font-size: 1.8rem;
    }
    
    .about-description {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 3rem 0;
    }
    
    .services-grid-minimal {
        justify-content: center;
    }

    /* Contact Section */
    .contact-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-actions .btn-primary,
    .contact-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Motion shapes adjustments for tablet */
    .motion-shape,
    .floating-shape,
    .triangle-shape,
    .angular-shape,
    .contact-triangle {
        opacity: 0.05;
        transform: scale(0.8);
    }
}

/* Mobile Landscape (568px and down) */
@media (max-width: 568px) {
    .hero-title {
        font-size: clamp(2.5rem, 14vw, 6rem);
    }
    
    .manifesto-title {
        font-size: clamp(2rem, 10vw, 5rem);
    }
    
    .contact-title {
        font-size: clamp(1.8rem, 9vw, 4rem);
    }
    
    .project-visual {
        height: 200px;
    }
    
    .project-title {
        font-size: 1.4rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
}

/* Mobile Portrait (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .navbar {
        height: 70px;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
        padding: 2rem 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }

    /* Typography scaling for small screens */
    .hero-title {
        font-size: clamp(2.2rem, 16vw, 5rem);
        line-height: 0.9;
    }
    
    .manifesto-title {
        font-size: clamp(1.8rem, 12vw, 4rem);
    }
    
    .contact-title {
        font-size: clamp(1.6rem, 10vw, 3.5rem);
    }
    
    .section-main {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    /* Section padding adjustments */
    .hero,
    .manifesto-section,
    .work-section,
    .about-section,
    .contact-section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: 85vh;
        padding: 4rem 0 3rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }

    /* Project items */
    .project-visual {
        height: 180px;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .project-image-placeholder {
        width: 80px;
        height: 60px;
    }
    
    .placeholder-text {
        font-size: 0.8rem;
    }

    /* About section */
    .about-intro {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .services-list h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .service-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Contact improvements */
    .contact-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .contact-actions .btn-primary,
    .contact-actions .btn-secondary {
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .detail-label {
        font-size: 0.8rem;
    }
    
    .detail-value {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    /* Motion shapes for mobile */
    .motion-shape,
    .floating-shape,
    .triangle-shape,
    .angular-shape,
    .contact-triangle {
        display: none; /* Hide on very small screens for performance */
    }
    
    /* Scroll elements */
    .scroll-hint {
        transform: scale(0.9);
    }
    
    .scroll-hint span {
        font-size: 0.8rem;
    }
    
    .scroll-arrow {
        height: 30px;
    }
}

/* Touch improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Improve touch targets */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary,
    .cta-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .project-item {
        min-height: 120px;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects for touch devices */
    .project-item:hover,
    .service-item:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Focus states for accessibility */
    .nav-link:focus,
    .btn-primary:focus,
    .btn-secondary:focus,
    .project-item:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .manifesto-title,
    .contact-title {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .scroll-hint {
        display: none;
    }
    
    .manifesto-section,
    .work-section,
    .about-section,
    .contact-section {
        padding: 3rem 0;
    }
}

/* Password Modal & Resume Page Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--background-white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-lighter);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.password-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.password-error {
    color: #ef4444;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Resume Page Styles - Inspired by JP Dionisio */
.resume-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-white);
    z-index: 9999;
    overflow-y: auto;
}

.resume-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.resume-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-lighter);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.resume-close:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

.resume-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.resume-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.1;
}

.resume-tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.resume-content {
    display: grid;
    gap: 3rem;
}

.resume-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.resume-section:last-child {
    border-bottom: none;
}

.resume-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
}

.resume-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.experience-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-item ul {
    list-style: none;
    padding: 0;
}

.experience-item li {
    padding: 0.5rem 0;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(99, 102, 241, 0.05);
}

.project-highlight {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.project-highlight h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.project-highlight p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-highlight .project-tools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.philosophy-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--background-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.philosophy-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

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

.resume-contact p {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 8px;
}

.resume-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.resume-contact a:hover {
    text-decoration: underline;
}

.resume-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.resume-footer p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-style: italic;
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

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

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}