/* =========================================
   BASE
========================================= */
:root {
    --bg: #070b14;
    --surface: rgba(10, 17, 29, 0.78);
    --surface-strong: #0b121f;
    --text: #f4f7fb;
    --muted: #8996a8;
    --muted-strong: #c5cedb;
    --line: #202e43;
    --line-strong: #26364d;
    --accent: #00e5ff;
    --success: #43e97b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

main,
.navbar,
footer {
    width: min(1200px, 90%);
    margin-inline: auto;
}

.background-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.glow {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -2;
}

.glow-one {
    top: -200px;
    left: -150px;
    background: var(--accent);
}

.glow-two {
    top: 400px;
    right: -200px;
    background: #7c3aed;
}

.section-label {
    color: var(--accent);
    font: 700 0.8rem/1 monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    min-height: 100px;
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-4deg) scale(1.05);
}

.logo img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: block;
    padding: 10px 16px;
    color: #9da8ba;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 2px;
    left: 16px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.nav-contact {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
}

.nav-contact:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.06);
}

.menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   BUTTONS
========================================= */
.primary-btn,
.secondary-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 23px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
    background: var(--accent);
    color: #061018;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
}

.primary-btn span {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.primary-btn:hover span {
    transform: translateX(4px);
}

.secondary-btn {
    border: 1px solid var(--line-strong);
    color: #dbe3ed;
}

.secondary-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-3px);
}

/* =========================================
   HOME — HERO
========================================= */
.hero {
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 80px;
    padding: 70px 0 120px;
}

.hero-content {
    animation: fadeUp 0.8s ease both;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #8d99aa;
    font: 0.8rem monospace;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s infinite;
}

.hero h1 {
    max-width: 750px;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -4px;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.hero h2 {
    margin-top: 25px;
    color: var(--muted-strong);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 500;
}

.hero-description {
    max-width: 600px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 35px;
}

.tech-stack span,
.project-tech span {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.02);
    color: #8290a4;
    font: 0.75rem monospace;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    animation: float 5s ease-in-out infinite;
}

.image-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.12;
}

.hero-image-card {
    position: relative;
    width: min(420px, 100%);
    padding: 10px;
    overflow: hidden;
    border: 1px solid #25354c;
    border-radius: 16px;
    background: rgba(11, 18, 31, 0.85);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-image-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), transparent 40%);
    pointer-events: none;
}

.window-top {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 12px;
    color: #66758a;
    font: 0.7rem monospace;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #435064;
}

.hero-image-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    filter: saturate(0.85);
}

.image-code {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 15px;
    color: #64758c;
    font: 0.7rem monospace;
}

.image-code span:first-child,
.image-code span:last-child,
.cursor {
    color: var(--accent);
}

/* =========================================
   HOME — ABOUT & STATS
========================================= */
.about-section {
    padding: 100px 0;
}

.section-heading h2 {
    max-width: 600px;
    margin-top: 12px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -2px;
}

.section-heading h2 span,
.contact-card h2 span,
.resume-header h1 span,
.resume-cta h2 span {
    color: var(--accent);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.about-card {
    min-height: 280px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 17, 29, 0.7);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.03);
}

.card-number {
    margin-bottom: 55px;
    color: #35445a;
    font: 0.8rem monospace;
}

.about-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.about-card p:not(.card-number) {
    color: #7e8da2;
    font-size: 0.95rem;
}

.featured-card {
    transform: translateY(-15px);
    border-color: rgba(0, 229, 255, 0.3);
}

.featured-card:hover {
    transform: translateY(-23px);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 105px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 17, 29, 0.55);
}

.stat-number {
    min-width: 65px;
    color: var(--accent);
    font: 700 2rem/1 monospace;
}

.stat-card strong {
    display: block;
    margin-bottom: 2px;
}

.stat-card p {
    color: #69778b;
    font-size: 0.8rem;
}

/* =========================================
   HOME — CTA
========================================= */
.contact-section {
    padding: 80px 0 120px;
}

.contact-card {
    position: relative;
    overflow: hidden;
    padding: 80px 30px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.07), transparent 60%);
    text-align: center;
}

.contact-card::before,
.contact-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.contact-card::before {
    top: -50px;
    left: -50px;
    transform: rotate(45deg);
}

.contact-card::after {
    right: -50px;
    bottom: -50px;
    transform: rotate(45deg);
}

.contact-card h2 {
    max-width: 750px;
    margin: 12px auto 15px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -3px;
}

.contact-card > p:not(.section-label) {
    max-width: 550px;
    margin: 0 auto 30px;
    color: var(--muted);
}

/* =========================================
   SHARED PROJECT STYLES
========================================= */
.page-header {
    max-width: 800px;
    padding: 100px 0 70px;
}

.page-header h1,
.resume-header h1 {
    margin-top: 12px;
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -4px;
}

.page-header h1 span,
.contact-card h2 span,
.resume-header h1 span,
.resume-cta h2 span {
    color: var(--accent);
}

.page-header > p:not(.section-label) {
    max-width: 650px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.1rem;
}

.projects-section {
    padding: 20px 0 40px;
}

.compact-heading {
    margin-bottom: 30px;
}

.compact-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10, 17, 29, 0.72);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.project-preview {
    height: 300px;
    overflow: hidden;
    background: #0e1725;
}

.project-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-image-big{
    display: block;
    width: 100%;
    transition: transform 0.4s ease;
}

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

.project-info {
    padding: 28px;
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.project-type,
.project-status {
    font-family: monospace;
    font-size: 0.7rem;
}

.project-type {
    color: var(--accent);
}

.project-status {
    padding: 4px 7px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: #627086;
}

.project-info h2 {
    margin-bottom: 4px;
    font-size: 1.7rem;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--muted-strong);
    font-size: 1rem;
    font-weight: 500;
}

.project-info p {
    color: #7f8da1;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.project-tech span {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.02);
    color: #8290a4;
    font: 0.75rem monospace;
}

.project-link {
    display: inline-block;
    margin-top: 25px;
    margin-right: 12px;
    font-weight: 700;
    transition: color 0.25s ease;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.featured-project {
    margin-bottom: 20px;
}

/* =========================================
   RESUME
========================================= */
.resume-header {
    padding: 100px 0 70px;
    border-bottom: 1px solid #1d2a3d;
}

.resume-header > p:not(.section-label) {
    max-width: 760px;
    margin: 20px 0 30px;
    color: var(--muted);
    font-size: 1.2rem;
}

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.resume-container {
    padding: 20px 0 40px;
}

.resume-section {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 50px;
    padding: 55px 0;
    border-bottom: 1px solid #1d2a3d;
}

.resume-label {
    color: #748196;
    font: 700 0.75rem monospace;
    letter-spacing: 1px;
}

.resume-label span {
    margin-right: 10px;
    color: var(--accent);
}

.resume-content {
    max-width: 800px;
}

.resume-content > p {
    margin-bottom: 18px;
    color: #8b98aa;
    font-size: 1rem;
}

.resume-skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.resume-skill {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
}

.resume-skill h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.resume-skill p {
    color: #69778b;
    font-size: 0.85rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tool-grid div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #c7d0dc;
    font-family: monospace;
    transition: 0.25s ease;
}

.tool-grid div:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.timeline-item {
    display: flex;
    gap: 20px;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.timeline-item h3 {
    margin: 5px 0;
    font-size: 1.15rem;
}

.timeline-item p {
    color: #7c899d;
    font-size: 0.9rem;
}

.timeline-date {
    color: var(--accent) !important;
    font: 0.7rem monospace !important;
}

.resume-project {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
}

.resume-project h3 {
    margin-top: 5px;
    font-size: 1.4rem;
}

.resume-project > p {
    margin-top: 14px;
    color: #7c899d;
}

.resume-cta {
    padding: 100px 0 30px;
}

.resume-cta h2 {
    max-width: 700px;
    margin: 12px 0 30px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
}

/* =========================================
   CONTACT PAGE
========================================= */
.contact-page {
    min-height: calc(100vh - 180px);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 100px;
    padding: 80px 0 120px;
}

.contact-active {
    border-color: var(--accent);
}

.contact-intro {
    max-width: 520px;
}

.contact-intro h1 {
    margin-top: 15px;
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -4px;
}

.contact-intro h1 span {
    display: block;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.contact-description {
    max-width: 470px;
    margin-top: 30px;
    color: #8996a8;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
}

.contact-socials a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-socials a:hover,
.contact-socials a:focus-visible {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}

.contact-socials img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.75;
}

.contact-socials a:hover img,
.contact-socials a:focus-visible img {
    opacity: 1;
}

.contact-form-card {
    position: relative;
    padding: 35px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.07), transparent 45%), rgba(10, 17, 29, 0.8);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.contact-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.7;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: #728197;
    font: 0.75rem monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header span {
    color: var(--accent);
}

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

.form-group label {
    color: #aab6c7;
    font: 0.75rem monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    outline: none;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(7, 11, 20, 0.8);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #536176;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.02);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.06);
}

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

.contact-submit {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #061018;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.contact-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
}

.contact-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.submit-arrow {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.contact-submit:hover:not(:disabled) .submit-arrow {
    transform: translateX(5px);
}

.form-status {
    min-height: 24px;
    margin-top: 15px;
    color: #7f8da1;
    font: 0.75rem monospace;
    text-align: center;
}

.form-status.success { color: var(--success); }
.form-status.error { color: #ff6b6b; }

/* =========================================
   FOOTER
========================================= */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0 45px;
    border-top: 1px solid #172335;
    color: #56657a;
    font: 0.7rem monospace;
}

.footer__left {
    display: flex;
    align-items: center;
}

.footer__logo {
    width: 30px;
    margin: 0 12px;
    filter: invert(1);
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--success); }
    50% { opacity: 0.5; box-shadow: 0 0 4px var(--success); }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 850px) {
    .navbar {
        min-height: 80px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        border: 1px solid var(--line-strong);
        border-radius: 10px;
        background: rgba(7, 11, 20, 0.97);
        backdrop-filter: blur(15px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 14px;
    }

    .nav-links a.active::after {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-top: 70px;
        text-align: center;
    }

    .eyebrow,
    .hero-buttons,
    .tech-stack {
        justify-content: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 430px;
        margin-inline: auto;
    }

    .about-grid,
    .home-stats {
        grid-template-columns: 1fr;
    }

    .featured-card,
    .featured-card:hover {
        transform: none;
    }

    .featured-card:hover {
        transform: translateY(-8px);
    }

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

    .resume-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-page {
        grid-template-columns: 1fr;
        gap: 55px;
        padding: 60px 0 90px;
    }

    .contact-intro {
        max-width: 700px;
        margin-inline: auto;
        text-align: center;
    }

    .contact-description {
        margin-inline: auto;
    }

    .contact-socials {
        justify-content: center;
    }

    .contact-form-card {
        width: 100%;
        max-width: 700px;
        margin-inline: auto;
    }
}

@media (max-width: 550px) {
    main,
    .navbar,
    footer {
        width: 88%;
    }

    .hero {
        padding-top: 50px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons,
    .resume-actions {
        flex-direction: column;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-image-card {
        width: 100%;
    }

    .about-section {
        padding: 60px 0;
    }

    .contact-section {
        padding: 50px 0 80px;
    }

    .contact-card {
        padding: 55px 20px;
    }

    .contact-card h2 {
        font-size: 2.5rem;
        letter-spacing: -2px;
    }

    .page-header,
    .resume-header {
        padding: 60px 0 50px;
    }

    .page-header h1,
    .resume-header h1 {
        font-size: 3.2rem;
        letter-spacing: -2px;
    }

    .project-preview {
        height: 220px;
    }

    .project-info {
        padding: 22px;
    }

    .resume-skill-grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .contact-intro h1 {
        font-size: clamp(3rem, 15vw, 4.2rem);
        letter-spacing: -2px;
    }

    .contact-description {
        font-size: 0.95rem;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
