:root {
    --primary-pink: #ff00ff;
    --primary-cyan: #00d4ff;
    --dark-bg: #0a0a0a;
    --teal-bg: #0d3d4a;
    --gold-bg: #c49a3f;
    --green-bg: #4a7c59;
    --red-bg: #8b3a2f;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
}

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

html {
    scroll-behavior: auto;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-pink);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

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

/* Focus visible styles for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-pink);
    outline-offset: 3px;
}

.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px calc((100vw - 1400px) / 2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
    transition: background 0.4s ease, border-color 0.4s ease;
}

@media (max-width: 1400px) {
    .navbar {
        padding: 20px 20px;
    }
}

/* Navbar section-specific colors */
.navbar.section-home {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(255, 0, 255, 0.2);
}

.nav-link {
    font-family: 'Chivo', sans-serif;
    font-weight: 100;
}

.navbar.section-home .nav-link.active {
    font-family: 'Chivo', sans-serif;
    font-weight: 800;
    color: #ff66ff;
}

.nav-link.active {
    font-weight: 800;
}

.navbar.section-portfolio {
    background: rgba(13, 61, 74, 0.95);
    border-bottom-color: rgba(0, 212, 255, 0.3);
}

.navbar.section-portfolio .nav-link.active {
    color: #66e0ff;
}

.navbar.section-experience {
    background: rgba(196, 154, 63, 0.95);
    border-bottom-color: rgba(255, 215, 0, 0.3);
}

.navbar.section-experience .nav-link.active {
    color: #ffe066;
}

.navbar.section-about {
    background: rgba(74, 124, 89, 0.95);
    border-bottom-color: rgba(144, 238, 144, 0.3);
}

.navbar.section-about .nav-link.active {
    color: #90ee90;
}

.navbar.section-contact {
    background: rgba(139, 58, 47, 0.95);
    border-bottom-color: rgba(255, 182, 193, 0.3);
}

.navbar.section-contact .nav-link.active {
    color: #ffb6c1;
}

.nav-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link svg {
    flex-shrink: 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: var(--dark-bg);
    position: relative;
    align-items: flex-start;
    padding-top: 4vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 0, 255, 0.1), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(138, 43, 226, 0.1), transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 40px;
}

.gradient-text {
    font-family: 'Monoton', cursive;
    font-weight: 200;
    background: linear-gradient(135deg, #ff00ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-top: 4px;
}

.hero-name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 60px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
}

.btn-primary:hover,
.btn-primary:focus {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--text-light);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ux-card {
    display: none;
}

.ux-card svg {
    width: 100%;
    height: 100%;
    stroke: rgba(255, 0, 255, 0.8);
}

.ux-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ux-card.card-1 {
    width: 105px;
    height: 75px;
    top: 70px;
    right: 620px;
    left: auto;
    animation: float 3s ease-in-out infinite;
}

.ux-card.card-2 {
    width: 105px;
    height: 75px;
    top: 120px;
    right: 120px;
    left: auto;
    animation: float 3s ease-in-out infinite 0.5s;
}

.ux-card.card-3 {
    width: 105px;
    height: 75px;
    top: 250px;
    right: 120px;
    left: auto;
    animation: float 3s ease-in-out infinite 1s;
}

.ux-card.card-4 {
    width: 105px;
    height: 75px;
    bottom: 145px;
    right: 680px;
    left: auto;
    animation: float 3s ease-in-out infinite 1.5s;
}

.designer-at-desk {
    width: 640px;
    height: auto;
}

.purpose-badge {
    display: none;
}

#purpose {
    font-size: 2.8rem
}

.scroll-indicator {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.1rem;
    animation: bounce 2s ease-in-out infinite;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.1);
}

.scroll-indicator svg {
    display: block;
    flex-shrink: 0;
}

.scroll-indicator span {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 38px;
    line-height: 38px;
    color: #FF1CF7;
}

/* Portfolio Section */
.portfolio-section {
    background: #031D21;
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(0, 100, 150, 0.1), transparent 40%);
}

.section-title {
    font-family: 'Monoton', cursive;
    font-size: 5rem;
    font-weight: 200;
    margin-bottom: 60px;
    text-align: left;
    position: relative;
    /*text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);*/
    letter-spacing: 2px;
}

.portfolio-section .section-title {
    color: rgba(0, 212, 255, 0.5);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-card {
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.portfolio-card:hover,
.portfolio-card:focus {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-blue {
    background: linear-gradient(341.18deg, rgba(8, 239, 255, 0.57) 23.64%, rgba(100, 54, 255, 0.57) 51.91%, rgba(32, 0, 63, 0.57) 95.96%);
}

.card-cyan {
    background: linear-gradient(180deg, #00A8E0 0%, #005C7A 100%);
}

.card-orange {
    background: linear-gradient(180deg, #EC762A 0%, #864318 100%);
}

.card-teal {
    background: radial-gradient(60.49% 81.85% at 54.98% 50.59%, rgba(62, 184, 63, 0.62) 0%, rgba(0, 112, 184, 0.62) 100%);
}

.card-gray {
    background: linear-gradient(180deg, #567EA9 0%, #223243 62.5%);
}

.card-purple {
    background: linear-gradient(180deg, #742AEC 0%, #864318 100%);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.card-logo {
    min-height: 10px;
    margin-bottom: 20px;
}

.portfolio-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-subtitle {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    color: #FFFFFF;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.portfolio-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.portfolio-card li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.85;
}

.portfolio-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
    font-weight: bold;
}

.card-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portfolio-card:hover .card-link,
.portfolio-card:focus .card-link {
    color: var(--primary-pink);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 20px;
    padding: 0;
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 0, 255, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    background: rgba(255, 0, 255, 0.2);
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 0 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    background: var(--primary-pink);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px 50px;
    clear: both;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff00ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-weight: 500;
}

.modal-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-cyan);
}

.modal-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-description ul {
    list-style: none;
    margin: 20px 0;
}

.modal-description li {
    padding-left: 30px;
    margin-bottom: 15px;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
}

.modal-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-description strong {
    color: var(--primary-pink);
}

.modal-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Experience Section */
.experience-section {
    background: var(--gold-bg);
    position: relative;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.1), transparent 40%),
                radial-gradient(circle at 30% 70%, rgba(218, 165, 32, 0.1), transparent 40%);
}

.experience-section .section-title {
    color: rgba(255, 215, 0, 0.6);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.66);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.skills-category h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
    color: var(--text-dark);
}

.skill-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.3);
}

.skill-item img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.skill-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    background: var(--green-bg);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(72, 201, 176, 0.1), transparent 40%),
                radial-gradient(circle at 80% 50%, rgba(39, 174, 96, 0.1), transparent 40%);
}

.about-section .section-title {
    color: rgba(144, 238, 144, 0.6);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.image-placeholder {
    width: 280px;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
}

.read-more {
    display: inline-block;
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.read-more:hover,
.read-more:focus {
    color: var(--primary-pink);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--red-bg), #a0522d);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 99, 71, 0.2), transparent 40%),
                radial-gradient(circle at 70% 30%, rgba(205, 92, 92, 0.2), transparent 40%);
}

.contact-section .section-title {
    color: rgba(255, 182, 193, 0.6);
}

.contact-form {
    max-width: 800px;
    margin: 0 0 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #ff6b6b;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    min-height: 20px;
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--text-light);
    color: var(--red-bg);
    border: 2px solid var(--text-light);
    padding: 14px 40px;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-submit:hover,
.btn-submit:focus {
    background: transparent;
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-alternative-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-left: auto;
}

.btn-linkedin {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 14px 40px;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-linkedin:hover,
.btn-linkedin:focus {
    background: var(--text-light);
    color: var(--red-bg);
    transform: translateY(-2px);
}

/* Copyright */
.copyright {
    text-align: center;
    margin-top: 40px;
    opacity: 0.7;
    font-size: 0.9rem;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 255, 0.6); }
}

/* Responsive Design */
@media (min-width: 2200px) {
    .container {
        max-width: 1800px;
    }

    .navbar {
        padding: 20px calc((100vw - 1800px) / 2);
    }

    .hero-title {
        font-size: 5.5rem;
        margin-bottom: 55px;
    }

    .hero-name {
        font-size: 4.2rem;
    }

    .hero-subtitle {
        font-size: 4.2rem;
        margin-bottom: 80px;
    }

    .hero-buttons .btn {
        padding: 18px 38px;
        font-size: 1.3rem;
    }

    .hero-section .container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 180px);
    }

    .hero-section .hero-content {
        flex: 0 0 auto;
        align-items: start;
    }

    .hero-text {
        padding-top: 4.5rem;
    }

    .scroll-indicator {
        gap: 4.2rem;
        margin: auto 0;
    }

    .scroll-indicator span {
        font-size: 76px;
        line-height: 76px;
    }

    .scroll-indicator svg {
        width: 108px;
        height: 134px;
    }

    .hero-illustration {
        align-items: flex-start;
    }

    .illustration-wrapper {
        align-items: flex-start;
    }

    .designer-at-desk {
        width: 850px;
        margin-top: 9rem;
    }

    .purpose-badge {
        right: 480px;
        padding: 18px 25px;
    }

    .purpose-badge svg {
        width: 38px;
        height: 38px;
    }

    .purpose-badge span {
        font-size: 1.3rem;
    }
}

@media (min-width: 1277px) and (max-width: 2199px) {
    .hero-section .hero-content {
        align-items: start;
    }

    .hero-text {
        padding-top: 4.5rem;
    }

    .hero-illustration {
        align-items: flex-start;
    }

    .illustration-wrapper {
        align-items: flex-start;
    }

    .designer-at-desk {
        margin-top: 4.5rem;
    }
}

@media (max-width: 1276px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
        text-align: left;
    }

    .hero-text {
        grid-column: 1 / -1;
        display: contents;
    }

    .hero-title {
        grid-column: 1 / -1;
        font-size: clamp(3rem, 8.4vw, 9rem);
        width: 66%;
        text-align: left;
    }

    .hero-name,
    .hero-subtitle {
        display: none;
    }

    .hero-buttons {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
    }

    .hero-illustration {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        justify-content: flex-start;
    }

    .scroll-indicator {
        margin-top: 30px;
    }
}

@media (min-width: 1025px) and (max-width: 1276px) {
    .hero-title {
        width: 100%;
    }

    .hero-title br {
        display: none;
    }

    .gradient-text {
        display: block;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-end;
        align-self: flex-end;
        width: 95%;
    }

    .hero-buttons .btn {
        padding: 21px 42px;
        font-size: 1.5rem;
        gap: 15px;
        border-radius: 45px;
    }

    .hero-buttons .btn svg {
        width: 30px;
        height: 30px;
    }

    .designer-at-desk {
        width: 512px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        order: -1;
    }

    .nav-brand {
        order: 1;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-content {
        display: contents;
    }

    .hero-text {
        display: contents;
    }

    .hero-title {
        order: 1;
        width: 100%;
    }

    .hero-buttons {
        order: 2;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-illustration {
        order: 3;
        display: flex;
        justify-content: flex-start;
        margin-top: auto;
        margin-bottom: auto;
    }

    .hero-section .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        min-height: calc(100vh - 100px);
    }

    .scroll-indicator {
        order: 4;
        margin-top: auto;
        margin-bottom: 64px;
    }

    .designer-at-desk {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-content {
        display: contents;
    }

    .hero-text {
        display: contents;
    }

    .hero-title {
        order: 1;
        width: 100%;
    }

    .hero-buttons {
        order: 2;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-illustration {
        order: 3;
        display: flex;
        justify-content: flex-start;
        margin-top: auto;
        margin-bottom: auto;
    }

    .hero-section .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        min-height: calc(100vh - 100px);
    }

    .scroll-indicator {
        order: 4;
        margin-top: auto;
        margin-bottom: 64px;
    }

    .designer-at-desk {
        width: 300px;
    }

    .hero-illustration {
        justify-content: center;
        width: 100%;
    }

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

    .image-placeholder {
        margin: 0 auto;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .modal-body {
        padding: 30px 35px;
    }

    .modal-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: -1;
    }

    .nav-brand {
        order: 1;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .section {
        padding: 60px 15px 30px;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 7.5vw;
        text-align: left;
        margin-left: 32px;
    }

    .scroll-indicator {
        width: 100%;
        justify-content: center;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .section-title::before {
        font-size: 3.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-alternative-text {
        margin-left: 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: calc(100% - 64px);
        margin: 0 32px;
        gap: 24px;
    }

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

    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-body {
        padding: 25px 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-description h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-content {
        display: contents;
    }

    .hero-text {
        display: contents;
    }

    .hero-title {
        order: 1;
        width: 100%;
        font-size: 2rem;
    }

    .hero-buttons {
        order: 2;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-illustration {
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: auto;
        margin-bottom: auto;
    }

    .hero-section .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        min-height: calc(100vh - 80px);
    }

    .scroll-indicator {
        order: 4;
        margin-top: auto;
        margin-bottom: 48px;
    }

    .designer-at-desk {
        width: 240px;
    }

    .hero-name {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-title::before {
        font-size: 3rem;
    }

    .navbar {
        padding: 15px 20px;
    }

    .portfolio-card {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-illustration,
    .scroll-indicator,
    .modal {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-snap-type: none;
    }
}