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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior: none;
    font-weight: 300;
    line-height: 1.6;
}

/* Update heading styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Navigation */
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Hero Section */
.hero .intro {
    font-weight: 400;
    font-size: 1.2rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero .accent {
    font-weight: 700;
}

.hero .accent span {
    display: inline-block;
    animation: flowUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero .subtitle {
    font-weight: 300;
    font-size: 1.1rem;
}

/* Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none;
    }

    .cursor {
        width: 20px;
        height: 20px;
        border: 2px solid #fff;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 1002;
        transition: all 0.2s ease;
    }

    .cursor.grow {
        width: 50px;
        height: 50px;
        background: rgba(255,255,255,0.1);
        border-color: #647BED;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #647BED;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #647BED;
}

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

/* Add active state for current page */
.nav-links a.active {
    color: #647BED;
}

.nav-links a.active::after {
    width: 100%;
    background: #647BED;
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    nav {
        padding: 2rem 8rem;
        background: rgba(0, 0, 0, 0.95);
    }

    .logo {
        font-size: 1.8rem;
    }

    .nav-links {
        margin-left: auto;
    }

    .nav-links a {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    padding: 12rem 4rem 8rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 800px;
}

.accent {
    color: #647BED;
    display: inline-block;
    position: relative;
}

.accent span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes flowUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Restore the original animation */
.accent span {
    display: inline-block;
    animation: flowUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

.subtitle {
    color: #888;
    margin-bottom: 2rem;
}

.cta-button {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: transform 0.5s ease;
    z-index: -1;
}

.cta-button:hover {
    color: #000;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

/* Text reveal effect */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

@media (hover: none) or (pointer: coarse) {
    .cursor {
        display: none;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.3s ease,
                background-color 0.3s ease;
}

.mobile-menu-btn span:first-child {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:last-child {
    bottom: 0;
}

.mobile-menu-btn.active {
    transform: rotate(180deg);
}

.mobile-menu-btn.active span:first-child {
    transform: translateY(9px) rotate(45deg);
    background-color: #647BED;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #647BED;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-100%);
}

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

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 2px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav a.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu-btn.active span {
        background: #fff;
    }

    .mobile-menu-btn span {
        background: #fff;
    }

    .mobile-menu-btn {
        padding: 10px;
        margin-right: -10px;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero .intro {
        font-size: 1rem;
    }

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

    .about {
        padding: 4rem 1.5rem;
    }

    .about-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about h2 {
        font-size: 2rem;
        text-align: center;
    }

    .about-text p {
        font-size: 0.95rem;
        text-align: center;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .projects {
        padding: 4rem 1.5rem;
    }

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

    .project-card {
        max-width: 100%;
    }

    .project-image {
        height: 200px;
    }

    .skills {
        padding: 4rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-item {
        padding: 1.25rem;
    }

    .technologies {
        padding: 4rem 1.5rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 1rem;
    }

    .tech-item {
        width: 100%;
        height: auto;
        padding: 0.75rem;
    }

    .quotes-section {
        padding: 4rem 1.5rem;
    }

    .quotes-section .section-title {
        font-size: 1.8rem;
    }

    .quote p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .loader {
        width: 36px;
        height: 36px;
        margin: 0 12px;
    }

    .welcome-text {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }

    .cta-button {
        margin: 0 auto;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .about-image {
        max-width: 250px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quote p {
        font-size: 1rem;
    }

    .mobile-nav a {
        font-size: 1.2rem;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    gap: 10px;
}

.loader {
    --path: #2f3545;
    --dot: #647BED;
    --duration: 1.5s;
    width: 44px;
    height: 44px;
    position: relative;
    display: inline-block;
    margin: 0 16px;
}

.loader:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    display: block;
    background: var(--dot);
    top: 37px;
    left: 19px;
    transform: translate(-18px, -18px);
    animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader svg {
    display: block;
    width: 100%;
    height: 100%;
}

.loader svg rect,
.loader svg polygon,
.loader svg circle {
    fill: none;
    stroke: var(--path);
    stroke-width: 10px;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.loader svg polygon {
    stroke-dasharray: 145 76 145 76;
    stroke-dashoffset: 0;
    animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader svg rect {
    stroke-dasharray: 192 64 192 64;
    stroke-dashoffset: 0;
    animation: pathRect 1.5s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader svg circle {
    stroke-dasharray: 150 50 150 50;
    stroke-dashoffset: 75;
    animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader.triangle {
    width: 48px;
}

.loader.triangle:before {
    left: 21px;
    transform: translate(-10px, -18px);
    animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

@keyframes pathTriangle {
    33% {
        stroke-dashoffset: 74;
    }
    66% {
        stroke-dashoffset: 147;
    }
    100% {
        stroke-dashoffset: 221;
    }
}

@keyframes dotTriangle {
    33% {
        transform: translate(0, 0);
    }
    66% {
        transform: translate(10px, -18px);
    }
    100% {
        transform: translate(-10px, -18px);
    }
}

@keyframes pathRect {
    25% {
        stroke-dashoffset: 64;
    }
    50% {
        stroke-dashoffset: 128;
    }
    75% {
        stroke-dashoffset: 192;
    }
    100% {
        stroke-dashoffset: 256;
    }
}

@keyframes dotRect {
    25% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(18px, -18px);
    }
    75% {
        transform: translate(0, -36px);
    }
    100% {
        transform: translate(-18px, -18px);
    }
}

@keyframes pathCircle {
    25% {
        stroke-dashoffset: 125;
    }
    50% {
        stroke-dashoffset: 175;
    }
    75% {
        stroke-dashoffset: 225;
    }
    100% {
        stroke-dashoffset: 275;
    }
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
}

.welcome-screen.active {
    opacity: 1;
    visibility: visible;
}

.welcome-text {
    color: #647BED;
    font-size: 2rem;
    letter-spacing: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    font-weight: 300;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.welcome-text.active {
    opacity: 1;
    transform: translateY(0);
}

.welcome-text.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

/* Optional: Add a subtle glow effect */
.welcome-text.glow {
    text-shadow: 0 0 5px rgba(76, 163, 175, 0.3),
                 0 0 10px rgba(76, 175, 80, 0.2);
}

/* Main Content */
.main-content {
    opacity: 0;
    visibility: hidden;
}

.main-content.active {
    opacity: 1;
    visibility: visible;
}

/* About Section */
.about {
    padding: 8rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #888;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2px;
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

/* About Section Button Container */
.about-buttons {
    display: flex;
    gap: 2rem;  /* Consistent gap for all screen sizes */
    margin-top: 2rem;
}

/* Button styles */
.download-cv {
    background: transparent;
    color: #888;
    border: 1px solid #888;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.download-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #647BED;
    transition: transform 0.5s ease;
    z-index: -1;
}

.download-cv:hover {
    color: #000;
}

.download-cv:hover::before {
    transform: translateX(100%);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-buttons {
        justify-content: center;
        width: 100%;
        gap: 2rem;  /* Keep the same gap on mobile */
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .about-buttons {
        gap: 2rem;  /* Keep the same gap on very small screens */
    }
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.profile-illustration {
    max-width: 100%;
    height: auto;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.profile-illustration:hover {
    filter: brightness(1);
}

/* Media Queries */
@media (max-width: 768px) {
    .about {
        padding: 6rem 2rem;
    }

    .about-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-buttons {
        justify-content: center;
    }
}

/* Projects Section */
.projects {
    padding: 8rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
    text-align: center;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.project-info p {
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.project-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #647BED;
    transition: width 0.3s ease;
}

.project-link:hover {
    color: #647BED;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .projects {
        padding: 6rem 2rem;
    }

    .projects h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Skills Section */
.skills {
    padding: 8rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-header h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}

.skill-header span {
    color: #647BED;
    font-size: 0.9rem;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: #647BED;
    width: 0;
    transition: width 1s ease-in-out;
}

.skill-progress.animate {
    width: var(--progress);
    animation: progressAnimation 1s ease-in-out forwards;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .skills {
        padding: 6rem 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-item {
        padding: 1.5rem;
    }

    .skills h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Quote Section */
.quotes-section {
    padding: 8rem 4rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    position: relative;
    overflow: hidden;
}

.quotes-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.quotes-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
    letter-spacing: -0.02em;
}

.quotes-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #647BED;
}

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

.quote p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
    font-style: italic;
    letter-spacing: 0.2px;
}

.quote::before,
.quote::after {
    content: '"';
    font-size: 4rem;
    color: #647BED;
    position: absolute;
    opacity: 0.3;
}

.quote::before {
    top: 0;
    left: -20px;
}

.quote::after {
    bottom: -20px;
    right: -20px;
    transform: rotate(180deg);
}


/* Media Queries */
@media (max-width: 768px) {
    .quotes-section {
        padding: 6rem 2rem;
    }
    
    .quotes-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .quote p {
        font-size: 1.2rem;
    }
    
}

/* General Mobile Adjustments */
@media (max-width: 768px) {
    /* Header/Navigation */
    nav {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 1.5rem 4rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero .intro {
        font-size: 1rem;
    }

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

    /* About Section */
    .about {
        padding: 4rem 1.5rem;
    }

    .about-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about h2 {
        font-size: 2rem;
        text-align: center;
    }

    .about-text p {
        font-size: 0.95rem;
        text-align: center;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Projects Section */
    .projects {
        padding: 4rem 1.5rem;
    }

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

    .project-card {
        max-width: 100%;
    }

    .project-image {
        height: 200px;
    }

    /* Skills Section */
    .skills {
        padding: 4rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-item {
        padding: 1.25rem;
    }

    /* Technologies Section */
    .technologies {
        padding: 4rem 1.5rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 1rem;
    }

    .tech-item {
        width: 100%;
        height: auto;
        padding: 0.75rem;
    }

    /* Quote Section */
    .quotes-section {
        padding: 4rem 1.5rem;
    }

    .quotes-section .section-title {
        font-size: 1.8rem;
    }

    .quote p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* Loading Screen */
    .loader {
        width: 36px;
        height: 36px;
        margin: 0 12px;
    }

    /* Welcome Screen */
    .welcome-text {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .about-image {
        max-width: 250px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quote p {
        font-size: 1rem;
    }

    .mobile-nav a {
        font-size: 1.2rem;
    }
}

/* Fix for Mobile Menu */
.mobile-menu {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-menu-btn {
    z-index: 1002;
}

/* Improve Touch Targets */
.nav-links a,
.mobile-nav a,
.project-link,
.download-cv {
    padding: 0.8rem;
    margin: -0.8rem;
}

/* Fix for Mobile Cursor */
@media (hover: none) {
    * {
        cursor: auto !important;
    }

    .cursor {
        display: none !important;
    }
}
