/* ===== CSS Variables & Theme ===== */
:root {
    --primary: #4cff5e;
    --primary-rgb: 76, 255, 94;
    --primary-dark: #3dd94f;

    /* Dark Theme (default) */
    --bg: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;

    /* Sizing */
    --nav-height: 80px;
    --container-width: 1200px;
    --section-padding: 120px 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/*
[data-theme="light"] {
    --bg: #fafafa;
    --bg-secondary: #f4f4f5;
    --bg-tertiary: #e4e4e7;
    --text: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --border: #d4d4d8;
}
*/
/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color var(--transition-normal);
}

[data-theme="light"] .navbar {
    background: rgba(250, 250, 250, 0.9);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 0 0 0;
    margin: 0 0 8px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== Theme Switch ===== */
.switch {
    font-size: 15px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    --background: #20262c;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    transition: 0.5s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 10%;
    bottom: 15%;
    box-shadow: inset 8px -4px 0 0 #ececd9, -4px 1px 4px 0 #dadada;
    background: var(--background);
    transition: 0.5s;
}

.decoration {
    position: absolute;
    content: "";
    height: 2px;
    width: 2px;
    border-radius: 50%;
    right: 20%;
    top: 15%;
    background: #e5f041e6;
    backdrop-filter: blur(10px);
    transition: all 0.5s;
    box-shadow: -7px 10px 0 #e5f041e6, 8px 15px 0 #e5f041e6, -17px 1px 0 #e5f041e6,
    -20px 10px 0 #e5f041e6, -7px 23px 0 #e5f041e6, -15px 25px 0 #e5f041e6;
}

.switch input:checked ~ .decoration {
    transform: translateX(-20px);
    width: 10px;
    height: 10px;
    background: white;
    box-shadow: -12px 0 0 white, -6px 0 0 1.6px white, 5px 15px 0 1px white,
    1px 17px 0 white, 10px 17px 0 white;
}

.switch input:checked + .slider {
    background-color: #5494de;
}

.switch input:checked + .slider:before {
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0 15px #efdf2b, 0 0 10px 0 #efdf2b;
}

/* ===== Hamburger Menu ===== */
.hamburger {
    cursor: pointer;
    display: none;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger .line {
    fill: none;
    stroke: var(--text);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger .line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
    transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.mobile-logo img {
    height: 40px;
}

.mobile-close {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.mobile-close:hover {
    background: var(--bg-secondary);
}

.mobile-menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color var(--transition-fast);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-padding);
    padding-top: calc(var(--nav-height) + 40px);
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-badge span:last-child {
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.35s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.hero-image {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.profile-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.2);
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* ===== Scroll Arrow ===== */
.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    animation: scrollBounce 2.4s infinite;
}

.scroll-arrow:hover {
    opacity: 1;
}

.scroll-arrow svg {
    width: 32px;
    height: 32px;
    color: var(--text);
}

@keyframes scrollBounce {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(var(--primary-rgb), 0.5);
}

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

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


/* ===== Sections Common ===== */
.section-label {
    display: block;
    font-size: 14px;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.section-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    margin-bottom: 48px;
}

/* ===== About Section ===== */
.about {
    padding: var(--section-padding);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
}

.about-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
}

.code-comment {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fact-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-label {
    color: var(--text-muted);
    font-size: 14px;
}

.fact-value {
    font-weight: 500;
    font-size: 14px;
}

/* ===== Skills Section ===== */
.skills {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}

/* Software title styling */
.software-title {
    margin-top: 64px;
    margin-bottom: 32px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 160px;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    cursor: default;
}

.skill-item:hover {
    box-shadow: 0 10px 30px -10px rgba(var(--primary-rgb), 0.2);
    transition: none;
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.skill-item:hover .skill-name {
    color: var(--text);
}

/* ===== Projects Section ===== */
.projects {
    padding: var(--section-padding);
    position: relative;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 2rem;
}

.project-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: var(--bg-secondary);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.project-item:hover {
    background: var(--bg-tertiary);
}

.project-header {
    min-width: 80px;
}

.project-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

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

.project-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

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

.project-tech span {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.project-arrow {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.project-item:hover .project-arrow {
    color: var(--primary);
    transform: translate(4px, -4px);
}

/* Project Preview */
.project-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 356px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: opacity 0.15s ease;
}

.project-preview.visible {
    opacity: 1;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Experience Section ===== */
.experience {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.experience-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.experience-date {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.experience-role {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.experience-company {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 15px;
}

.experience-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-padding);
    text-align: center;
    padding-bottom: 100px;
}

#contact-label{
    text-align: left;
    margin-bottom: 2rem;
}

.contact-title {
    font-size: clamp(36px, 6vw, 48px);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-direction: column;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

#contact-top{
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact-top span{
    margin-left: 20px;
}

#contact-bottom{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#contact-bottom a,
#mail-contact{
    margin: 10px; !important;
}

#mail-contact{
    padding: 12px 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.contact-link span{
    white-space: nowrap;
}

.linkedin-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--primary);
    color: var(--bg);
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.linkedin-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px rgba(var(--primary-rgb), 0.5);
}

.linkedin-cta .cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translate(-150%, -50%) skewX(-15deg);
    animation: ctaGlow 3s infinite;
}

#contact-bottom a:nth-child(1) {
    cursor: default;
}

@keyframes ctaGlow {
    0% {
        transform: translate(-150%, -50%) skewX(-15deg);
    }
    100% {
        transform: translate(150%, -50%) skewX(-15deg);
    }
}

/* Other Socials Section */
.contact-other {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 2em 0;
}

.contact-other h3 {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.other-socials-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.other-socials-links .contact-link {
    background: transparent;
}


/* ===== Footer ===== */
.footer {
    padding: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Responsive Design ===== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .experience-date {
        font-size: 13px;
    }

    .skill-item {
        max-width: 140px;
        padding: 20px 14px;
    }

    .skill-icon {
        width: 42px;
        height: 42px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 24px;
        --nav-height: 70px;
    }

    .navbar {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Hero Section */
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-location {
        justify-content: center;
    }

    .status-badge {
        justify-content: center;
    }

    .profile-circle {
        width: 140px;
        height: 140px;
    }

    .hero-description {
        max-width: 100%;
    }

    /* Skills Grid - 3 columns on tablet */
    .skills-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .skill-item {
        max-width: calc(33.333% - 12px);
        min-width: 100px;
        flex: 1 1 calc(33.333% - 12px);
        padding: 16px 12px;
    }

    .skill-icon {
        width: 36px;
        height: 36px;
    }

    .skill-name {
        font-size: 12px;
    }

    /* Projects */
    .project-item {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .project-header {
        grid-column: 1 / -1;
    }

    .project-info {
        grid-column: 1;
    }

    .project-arrow {
        align-self: center;
    }

    .project-preview {
        display: none;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        font-size: 13px;
    }

    /* Contact Section */
    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    #contact-top {
        flex-direction: column;
        gap: 16px;
    }

    #contact-top span {
        margin-left: 0;
    }

    #contact-bottom {
        gap: 8px;
    }

    #contact-bottom a {
        margin: 6px;
    }

    .linkedin-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Experience */
    .experience-item {
        padding: 24px 0;
    }

    .experience-role {
        font-size: 18px;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .software-title {
        margin-top: 48px;
    }

    /* Container */
    .container {
        padding: 0 24px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px 16px;
        --nav-height: 64px;
    }

    .navbar {
        padding: 0 16px;
    }

    .logo img {
        height: 36px;
    }

    .hamburger svg {
        height: 2.5em;
    }

    /* Hero */
    .hero {
        height: 100dvh;
        padding-top: calc(var(--nav-height) + 24px);
    }

    .hero-content {
        gap: 32px;
    }

    .hero-title {
        font-size: clamp(28px, 9vw, 40px);
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .profile-circle {
        width: 120px;
        height: 120px;
    }

    .status-badge span:last-child {
        font-size: 12px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

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

    .scroll-arrow {
        bottom: 24px;
    }

    .scroll-arrow svg {
        width: 28px;
        height: 28px;
    }

    /* About */
    .about-card {
        padding: 20px;
    }

    .fact-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .fact-value {
        color: var(--text);
    }

    /* Skills Grid - 2 columns on mobile */
    .skills-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .skill-item {
        max-width: calc(50% - 6px);
        min-width: 0;
        flex: 1 1 calc(50% - 6px);
        padding: 14px 10px;
        gap: 8px;
    }

    .skill-icon {
        width: 32px;
        height: 32px;
    }

    .skill-name {
        font-size: 11px;
    }

    .software-title {
        margin-top: 40px;
        margin-bottom: 24px;
        font-size: 20px;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(22px, 6vw, 28px);
        margin-bottom: 24px;
    }

    .section-label {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    /* Projects */
    .project-item {
        padding: 20px 16px;
        grid-template-columns: 1fr auto;
    }

    .project-tag {
        font-size: 10px;
        padding: 4px 10px;
    }

    .project-title {
        font-size: 16px;
    }

    .project-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .project-tech {
        gap: 6px;
    }

    .project-tech span {
        font-size: 10px;
        padding: 3px 8px;
    }

    .project-arrow {
        width: 20px;
        height: 20px;
    }

    /* Experience */
    .experience-item {
        padding: 20px 0;
        gap: 8px;
    }

    .experience-date {
        font-size: 12px;
    }

    .experience-role {
        font-size: 16px;
    }

    .experience-company {
        font-size: 14px;
    }

    .experience-description {
        font-size: 14px;
    }

    /* Contact */
    .contact {
        padding-bottom: 60px;
    }

    .contact-title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .contact-links {
        margin-bottom: 32px;
    }

    #contact-top {
        gap: 12px;
    }

    #contact-bottom {
        flex-direction: column;
        width: 100%;
    }

    #contact-bottom a {
        margin: 4px 0;
        width: 100%;
        justify-content: center;
    }

    .contact-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    .linkedin-cta {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        max-width: none;
    }

    .contact-other {
        margin: 1.5em 0;
        gap: 16px;
    }

    .contact-other h3 {
        font-size: 12px;
    }

    .other-socials-links {
        flex-direction: column;
        width: 100%;
    }

    .other-socials-links .contact-link {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Menu */
    .mobile-menu {
        padding: 16px 20px;
    }

    .mobile-logo img {
        height: 36px;
    }

    .mobile-link {
        font-size: 24px;
    }

    .mobile-menu-links {
        gap: 24px;
    }

    /* Footer */
    .footer {
        padding: 24px 16px;
    }

    .footer p {
        font-size: 12px;
    }

    /* Container */
    .container {
        padding: 0 16px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    :root {
        --section-padding: 40px 12px;
    }

    .navbar {
        padding: 0 12px;
    }

    .logo img {
        height: 32px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 14px;
    }

    .profile-circle {
        width: 100px;
        height: 100px;
    }

    .skill-item {
        padding: 12px 8px;
    }

    .skill-icon {
        width: 28px;
        height: 28px;
    }

    .skill-name {
        font-size: 10px;
    }

    .container {
        padding: 0 12px;
    }
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}