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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow-x: hidden;
    background: #0a0a0a;
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#logo {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #f5f5f5;
    /* position: absolute внутри #intro-overlay (который уже fixed 100×100%).
       Это надёжнее чем position: fixed — избегает смещения из-за скроллбара
       и бага iOS Safari с overflow-x: hidden на body */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out;
    z-index: 10001;
    opacity: 1;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

#logo > div:first-child {
    white-space: nowrap;
}

#typing-text {
    font-size: 24px;
    font-weight: 400;
    color: rgba(245, 245, 245, 0.7);
    height: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

#typing-text .static {
    opacity: 0.6;
}

#typing-text .word {
    display: inline-block;
    font-weight: 500;
    color: #f5f5f5;
}

#typing-text .word.deleting {
    animation: deleteWord 0.3s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes deleteWord {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
}

#logo.move-to-header {
    animation: moveToHeader 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#logo.fixed-header {
    position: fixed;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    animation: none;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                text-shadow 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

#logo.fixed-header.visible {
    opacity: 1;
}

#logo.fixed-header.flash {
    text-shadow:
        0 0 30px rgba(245, 245, 245, 0.9),
        0 0 60px rgba(245, 245, 245, 0.6),
        0 0 90px rgba(230, 240, 255, 0.4),
        0 0 120px rgba(200, 220, 255, 0.3),
        0 0 150px rgba(200, 220, 255, 0.2),
        0 0 200px rgba(180, 210, 255, 0.1);
    filter: brightness(1.4) contrast(1.1);
}

#logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245,245,245,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: -1;
}

#logo.flash::before {
    opacity: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translate(-50%, -50%) translateY(-15px) rotate(1deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translate(-50%, -50%) translateY(-10px) rotate(-1deg);
        opacity: 1;
    }
}

@keyframes moveToHeader {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 48px;
        opacity: 1;
    }
    100% {
        top: 26px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 28px;
        opacity: 1;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(245,245,245,0.08);
    z-index: 9999;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
}

.nav-left, .nav-right {
    display: flex;
    gap: 32px;
}

.nav-button {
    color: rgba(245, 245, 245, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    position: relative;
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5f5f5;
    transition: width 0.3s ease;
}

.nav-button:hover {
    color: #f5f5f5;
    transform: translateY(-2px);
}

.nav-button:hover::after {
    width: 100%;
}

.nav-button.visible {
    animation: navButtonAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes navButtonAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    50% {
        transform: translateY(2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-spacer {
    width: 200px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 800px 200px at 50% 40%, rgba(245,245,245,0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

header.flash::before {
    opacity: 1;
}

header.visible {
    opacity: 1;
}

main {
    padding-top: 80px;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 1s;
}

main.visible {
    opacity: 1;
}

.hero {
    min-height: calc(100vh - 80px);
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f5;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
}

.hero h1 {
    font-size: 68px;
    margin-bottom: 32px;
    color: #f8f8f8;
    font-weight: 600;
    line-height: 1.15;
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -0.03em;
}

.hero-services {
    font-size: 28px;
    margin-bottom: 24px;
    color: rgba(245, 245, 245, 0.65);
    font-weight: 400;
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero-services .separator {
    width: 4px;
    height: 4px;
    background: rgba(245, 245, 245, 0.25);
    border-radius: 50%;
}

.hero p {
    font-size: 18px;
    margin-bottom: 48px;
    color: rgba(245, 245, 245, 0.45);
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    letter-spacing: -0.005em;
}

.cta-button {
    display: inline-block;
    padding: 20px 56px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 32px;
    font-weight: 500;
    font-size: 17px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 16px rgba(245, 245, 245, 0.12);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 245, 245, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.features {
    padding: 80px 20px;
    background: #0a0a0a;
}

.features h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
}

.section {
    padding: 100px 20px;
    background: #0a0a0a;
}

.section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #f5f5f5;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 18px;
    font-family: 'Outfit', sans-serif;
}

.section-content p {
    margin-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.project-card {
    background: linear-gradient(145deg, #171717 0%, #0f0f0f 100%);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.06);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    border-color: rgba(245, 245, 245, 0.12);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 32px 20px 32px;
}

.project-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(1.1);
}

.project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-image-wrapper {
    overflow: hidden;
    margin: 0 0 24px 0;
}

.project-content {
    padding: 0 32px 32px 32px;
}

.project-card h3 {
    font-size: 22px;
    margin: 0;
    color: #f8f8f8;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-type {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.5);
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.project-card p {
    color: rgba(245, 245, 245, 0.55);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(245, 245, 245, 0.06);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    color: rgba(245, 245, 245, 0.7);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    border: 1px solid rgba(245, 245, 245, 0.08);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(245, 245, 245, 0.1);
    border-color: rgba(245, 245, 245, 0.15);
}

.more-projects-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background: transparent;
    color: rgba(245, 245, 245, 0.8);
    text-decoration: none;
    border-radius: 32px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -0.01em;
    border: 1.5px solid rgba(245, 245, 245, 0.2);
    text-align: center;
    cursor: pointer;
    min-height: 58px;
}

.more-projects-btn .btn-content {
    display: block;
    white-space: nowrap;
}

.more-projects-btn .btn-content.expanded {
    white-space: normal;
    max-width: 500px;
    line-height: 1.4;
}

.more-projects-btn:hover {
    background: rgba(245, 245, 245, 0.05);
    border-color: rgba(245, 245, 245, 0.4);
    color: #f8f8f8;
    transform: translateY(-2px);
}

.projects-footer {
    text-align: center;
    margin-top: 20px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stack-category h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #f5f5f5;
}

.stack-list {
    list-style: none;
    color: #999;
    line-height: 2;
}

.stack-list li::before {
    content: "▹ ";
    color: #e0e0e0;
    font-weight: bold;
    margin-right: 8px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-wrapper {
    position: relative;
    background: linear-gradient(145deg, #171717 0%, #0f0f0f 100%);
    border-radius: 24px;
    padding: 60px;
    border: 1px solid rgba(245, 245, 245, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245,245,245,0.03) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.contact-header h3 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #f8f8f8;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
}

.contact-header p {
    font-size: 16px;
    color: rgba(245, 245, 245, 0.5);
    font-family: 'Outfit', sans-serif;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(245, 245, 245, 0.7);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(245, 245, 245, 0.12);
    border-radius: 12px;
    color: #f5f5f5;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(245, 245, 245, 0.3);
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 0 3px rgba(245, 245, 245, 0.05);
}

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

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 245, 245, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.success {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.contact-divider {
    display: flex;
    align-items: center;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 245, 245, 0.2), transparent);
}

.contact-divider span {
    padding: 0 20px;
    color: rgba(245, 245, 245, 0.4);
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(245, 245, 245, 0.08);
    border-radius: 12px;
    color: rgba(245, 245, 245, 0.7);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(10, 10, 10, 0.6);
    border-color: rgba(245, 245, 245, 0.2);
    color: #f5f5f5;
    transform: translateY(-2px);
}

.contact-method svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.success-message {
    display: none;
    padding: 16px 24px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    color: #4ade80;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    margin-top: 20px;
    animation: slideDown 0.5s ease;
}

.success-message.show {
    display: block;
}

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

footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin: 8px 0;
    color: rgba(245, 245, 245, 0.7);
    font-size: 14px;
}

footer p:first-child {
    font-weight: 600;
    color: #f5f5f5;
    font-size: 15px;
}

/* ========== БУРГЕР-МЕНЮ ========== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    gap: 5px;
    flex-shrink: 0;
    z-index: 10002;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(245, 245, 245, 0.75);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: rgba(245, 245, 245, 0.95);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: rgba(245, 245, 245, 0.95);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 245, 245, 0.08);
    z-index: 9998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    max-height: 280px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 16px 28px;
    color: rgba(245, 245, 245, 0.65);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(245, 245, 245, 0.05);
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
    min-height: 52px;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:active {
    color: #f5f5f5;
    background: rgba(245, 245, 245, 0.05);
    padding-left: 36px;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */

@media (max-width: 1024px) {
    .header-nav {
        gap: 40px;
    }

    .nav-left, .nav-right {
        gap: 24px;
    }

    .logo-spacer {
        width: 160px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-services {
        font-size: 22px;
    }

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

    .stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    #logo {
        font-size: 32px;
        gap: 14px;
    }

    #typing-text {
        font-size: 16px;
        height: 24px;
        min-height: 24px;
    }

    @keyframes moveToHeader {
        0% {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 32px;
            opacity: 1;
        }
        100% {
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 20px;
            opacity: 1;
        }
    }

    #logo.fixed-header {
        top: 18px;
        font-size: 20px;
    }

    header {
        height: 64px;
        padding: 0 20px;
    }

    .header-nav {
        gap: 0;
        justify-content: flex-end;
    }

    .nav-left, .nav-right {
        display: none;
    }

    .logo-spacer {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    main {
        padding-top: 64px;
    }

    .hero {
        min-height: calc(100vh - 64px);
        padding: 30px 16px;
    }

    .hero h1 {
        font-size: 40px;
        margin-bottom: 24px;
        line-height: 1.2;
    }

    .hero-services {
        font-size: 16px;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 20px;
    }

    .hero-services .separator {
        width: 3px;
        height: 3px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .cta-button {
        padding: 16px 44px;
        font-size: 16px;
    }

    .section {
        padding: 60px 16px;
    }

    .section h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .section-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .project-header {
        padding: 24px 24px 16px 24px;
        gap: 12px;
    }

    .project-logo {
        width: 38px;
        height: 38px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .project-type {
        font-size: 12px;
    }

    .project-content {
        padding: 0 24px 24px 24px;
    }

    .project-card p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .project-image-wrapper {
        margin: 0 0 20px 0;
    }

    .more-projects-btn {
        padding: 16px 36px;
        font-size: 15px;
    }

    .stack-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .stack-category h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .stack-list {
        font-size: 15px;
        line-height: 1.9;
    }

    .contact-wrapper {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .contact-header h3 {
        font-size: 26px;
    }

    .contact-header p {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 15px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-method {
        padding: 14px 18px;
        font-size: 13px;
    }

    .contact-divider {
        margin: 32px 0;
    }

    .contact-divider span {
        font-size: 13px;
        padding: 0 16px;
    }

    footer {
        padding: 32px 16px;
    }

    footer p {
        font-size: 13px;
    }

    footer p:first-child {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #logo {
        font-size: 28px;
    }

    #typing-text {
        font-size: 14px;
        height: 20px;
        min-height: 20px;
    }

    @keyframes moveToHeader {
        0% {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 28px;
            opacity: 1;
        }
        100% {
            top: 17px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 18px;
            opacity: 1;
        }
    }

    #logo.fixed-header {
        top: 17px;
        font-size: 18px;
    }

    header {
        height: 60px;
        padding: 0 16px;
    }

    .header-nav {
        gap: 0;
    }

    .mobile-nav {
        top: 60px;
    }

    main {
        padding-top: 60px;
    }

    .hero {
        min-height: calc(100vh - 60px);
        padding: 24px 12px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-services {
        font-size: 14px;
        gap: 12px;
    }

    .hero-services .separator {
        width: 2px;
        height: 2px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 15px;
    }

    .section {
        padding: 48px 12px;
    }

    .section h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .section-content {
        font-size: 15px;
    }

    .projects-grid {
        gap: 20px;
    }

    .project-header {
        padding: 20px 20px 14px 20px;
    }

    .project-logo {
        width: 36px;
        height: 36px;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-type {
        font-size: 11px;
    }

    .project-content {
        padding: 0 20px 20px 20px;
    }

    .project-card p {
        font-size: 13px;
    }

    .tech-tag {
        padding: 6px 12px;
        font-size: 11px;
    }

    .more-projects-btn {
        padding: 14px 32px;
        font-size: 14px;
    }

    .stack-category h3 {
        font-size: 17px;
    }

    .stack-list {
        font-size: 14px;
    }

    .contact-wrapper {
        padding: 32px 20px;
    }

    .contact-header h3 {
        font-size: 24px;
    }

    .contact-header p {
        font-size: 13px;
    }

    footer {
        padding: 28px 12px;
    }

    footer p {
        font-size: 12px;
        line-height: 1.6;
    }
}

@media (max-width: 360px) {
    #logo {
        font-size: 24px;
    }

    #typing-text {
        font-size: 12px;
        height: 18px;
        min-height: 18px;
    }

    #logo.fixed-header {
        font-size: 16px;
        top: 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-services {
        font-size: 13px;
    }

    .section h2 {
        font-size: 24px;
    }

    .mobile-nav-link {
        font-size: 15px;
        padding: 14px 24px;
    }
}
