@import url('https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js');

:root {
    --primary-text: #e0e6ed;
    --bg-color: #181c24;
    --accent-blue: #4a90e2;
    --accent-cyan: #00ced1;
    --accent-navy: #22304a;
    --water-blue: #22304a;
    --deep-blue: #1e293b;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Techy animated background using CSS gradients and animation */
.tech-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: 
        repeating-linear-gradient(120deg, rgba(74,144,226,0.08) 0 2px, transparent 2px 40px),
        repeating-linear-gradient(60deg, rgba(0,206,209,0.07) 0 1.5px, transparent 1.5px 30px),
        linear-gradient(120deg, rgba(34,48,74,0.7) 0%, rgba(30,41,59,0.7) 100%);
    animation: techbgmove 16s linear infinite;
}

@keyframes techbgmove {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 200px 400px, 400px 200px, 0 0; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    contain: layout style paint;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 35px;
    font-weight: 900;
    color: var(--primary-text);
    animation: fadeInLeft 0.8s ease-out;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    animation: fadeInRight 0.8s ease-out;
}

.nav-links a {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.cursor-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cursor-toggle:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    animation: fadeInLeft 1s ease-out 0.2s both;
}

.hero-content h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-content h1 {
    font-size: 88px;
    font-weight: 800;
    line-height: 100px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-content p {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 625px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-primary {
    display: inline-flex;
    padding: 12px 24px;
    background: var(--accent-cyan);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 4px 3px 0px 1px var(--accent-navy);
    border: 1px solid var(--accent-navy);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 6px 5px 0px 1px var(--accent-navy);
    background: var(--accent-blue);
    animation: bounce 0.6s ease;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.4s both;
    width: 100%;
    height: 100%;
    will-change: transform;
    contain: layout style paint;
}

.hero-image-bg {
    width: 436px;
    height: 671px;
    background: linear-gradient(135deg, var(--accent-blue), var(--water-blue));
    border-radius: 20px;
    box-shadow: 4px 5px 0px var(--accent-navy);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-image-bg:hover {
    transform: translateY(-5px);
    box-shadow: 8px 10px 0px var(--accent-navy);
}

.hero-image-bg img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

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

/* About Section */
.about {
    padding: 100px 0;
    text-align: center;
}

.about h2 {
    font-size: 150px;
    font-weight: 800;
    line-height: 150px;
    margin-bottom: 40px;
    background: linear-gradient(45deg, var(--deep-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about p {
    font-size: 22px;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto 40px;
}

.btn-contact {
    display: inline-flex;
    padding: 16px 32px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 20px;
    box-shadow: 4px 3px 0px 1px var(--accent-navy);
    border: 1px solid var(--accent-navy);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 6px 5px 0px 1px var(--accent-navy);
    background: var(--accent-cyan);
    animation: bounce 0.6s ease;
}

/* About Info 3 Columns Section */
.about-info-3col {
    display: flex;
    gap: 40px;
    background: linear-gradient(135deg, #142850 60%, #27496d 100%);
    border-radius: 20px;
    padding: 36px 28px;
    margin-top: 32px;
    color: #fff;
    font-family: 'Kanit', 'Poppins', Arial, sans-serif;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 32px #00ffe733, 0 2px 8px #0006;
    border: 2px solid #00ffe7;
    position: relative;
    overflow: hidden;
}

.about-info-3col .about-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: rgba(0,255,231,0.06);
    border-radius: 14px;
    box-shadow: 0 2px 16px #00ffe71a;
    padding: 18px 10px;
    margin: 0 2px;
    transition: box-shadow 0.2s, background 0.2s;
}

.about-info-3col .about-col:hover {
    background: rgba(0,255,231,0.13);
    box-shadow: 0 4px 24px #00ffe744, 0 2px 8px #00ffe722;
}

.about-col-logo img {
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: transparent !important;
    box-shadow: 0 2px 12px #00ffe733, 0 2px 8px #0002;
    padding: 8px;
    display: block;
    border: none;
}

.gpa-label {
    color: #00ffe7;
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 6px;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 8px #00ffe7cc;
}

.gpa-value {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 16px #00ffe7cc, 0 0 2px #00ffe7;
    letter-spacing: 1px;
}

.gpa-max {
    font-size: 22px;
    color: #00ffe7cc;
    font-weight: 600;
    margin-left: 4px;
    text-shadow: 0 1px 6px #00ffe7cc;
}

.credits-label {
    color: #00ffe7;
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 8px;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 8px #00ffe7cc;
}

.credits-progress-wrap {
    width: 100%;
    max-width: 180px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.credits-progress-bar {
    flex: 1;
    background: #223a5e;
    border-radius: 8px;
    height: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px #00ffe733;
    border: 1.5px solid #00ffe7;
}

.credits-progress-fill {
    background: linear-gradient(90deg, #00ffe7 60%, #1f4068 100%);
    height: 100%;
    border-radius: 8px 0 0 8px;
    transition: width 0.5s;
    box-shadow: 0 2px 12px #00ffe7cc;
}

.credits-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    min-width: 54px;
    text-align: right;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #00ffe7cc;
}

.credits-max {
    font-size: 17px;
    color: #00ffe7cc;
    font-weight: 600;
    margin-left: 2px;
    text-shadow: 0 1px 6px #00ffe7cc;
}

@media (max-width: 900px) {
  .header {
    padding: 10px 0;
  }
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
    margin-top: 2px;
  }
  .nav-links {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .nav-links li {
    margin: 0 2px;
  }
  .nav-links a {
    font-size: 16px;
    padding: 4px 0;
  }
}
@media (max-width: 600px) {
  .header {
    padding: 6px 0;
  }
  .logo {
    font-size: 18px;
    margin-bottom: 4px;
    margin-top: 2px;
  }
  .nav-links {
    gap: 8px;
    font-size: 13px;
  }
  .nav-links a {
    font-size: 13px;
    padding: 2px 0;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 24px 0;
    min-height: unset;
  }
  .hero-content {
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }
  .hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
  }
  .hero-content h2 {
    font-size: 18px;
  }
  .hero-content p {
    font-size: 16px;
    max-width: 100%;
  }
  .hero-image {
    width: 100%;
    height: 320px;
    min-height: 220px;
    margin: 0 auto;
  }
  .hero-image model-viewer {
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: 100vw;
    max-height: 320px;
  }
  .about {
    padding: 48px 0 24px 0;
  }
  .about h2 {
    font-size: 48px;
    line-height: 1.1;
  }
  .about-info-3col {
    flex-direction: column;
    gap: 18px;
    padding: 18px 8px;
  }
  .about-info-3col .about-col {
    padding: 10px 0;
    margin: 0;
    min-width: 0;
  }
  .about-col-logo img {
    max-width: 100px;
    height: 80px;
  }
  .gpa-value {
    font-size: 28px;
  }
  .credits-progress-wrap {
    max-width: 100px;
  }
  .skills-header h2 {
    font-size: 22px;
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
  }
  .skills-header p {
    font-size: 15px;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .skill-card {
    min-width: 0;
    padding: 10px 4px;
    font-size: 13px;
  }
  .projects {
    padding: 32px 0 24px 0;
  }
  .projects-header h2 {
    font-size: 28px;
  }
  .projects-header p {
    font-size: 15px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .project-card {
    min-width: 0;
    padding: 10px 4px;
  }
  .footer {
    padding: 18px 0 8px 0;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 32px;
  }
  .about h2 {
    font-size: 32px;
  }
  .about-col-logo img {
    max-width: 70px;
    height: 50px;
  }
  .gpa-value {
    font-size: 20px;
  }
  .credits-progress-wrap {
    max-width: 70px;
  }
  .skills-header h2 {
    font-size: 16px;
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
  }
  .projects-header h2 {
    font-size: 20px;
  }
}

/* Skills Section */
.skills {
    padding: 100px 0;
    position: relative;
}

.skills-header {
    text-align: center;
    margin-bottom: 80px;
}

.skills-header h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
}

.skills-header p {
    font-size: 25px;
    font-weight: 300;
}

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

.skill-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 18px;
}

.skill-label {
    min-width: 140px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-navy);
    margin-right: 12px;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 0.5px;
}

/* Skill Card - Techy dark gradient, neon border, glow on hover */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    min-height: 120px;
    background: linear-gradient(135deg, var(--deep-blue) 60%, var(--accent-blue) 100%);
    border: 1.5px solid var(--accent-cyan);
    color: var(--primary-text);
    box-shadow: 0 2px 24px 0 rgba(0,206,209,0.08), 0 4px 24px 0 rgba(74,144,226,0.10);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    box-shadow: 0 0 24px 6px var(--accent-cyan), 0 2px 8px rgba(74,144,226,0.18);
    border-color: var(--accent-blue);
    background: linear-gradient(120deg, var(--accent-navy) 40%, var(--accent-cyan) 100%);
}

.skill-card h3, .skill-card p {
    color: #e0e6ed;
}

.skill-card img {
    width: 48px;
    height: 48px;
    margin: 10px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    position: relative;
    cursor: pointer;
}

.skill-card img:hover {
    transform: scale(1.18) rotate(-5deg);
    box-shadow: 0 0 16px 4px var(--accent-blue), 0 2px 8px rgba(74,144,226,0.15);
    filter: brightness(1.2) drop-shadow(0 0 8px var(--accent-cyan));
    animation: tech-pulse 0.7s;
    z-index: 2;
}

@keyframes tech-pulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.22) rotate(-5deg); }
    100% { transform: scale(1.18) rotate(-5deg); }
}

/* Tooltip for tech icons */
.skill-card img[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    background: rgba(34,40,49,0.95);
    color: #fff;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Kanit', sans-serif;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(34,40,49,0.15);
    animation: fadeInTooltip 0.2s;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

.projects-header {
    text-align: center;
    margin-bottom: 80px;
}

.projects-header h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
}

.projects-header p {
    font-size: 25px;
    font-weight: 300;
}

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

/* Project Card - Techy dark, blue/cyan border, glow on hover */
.project-card {
    background: linear-gradient(135deg, #232b3a 60%, #22304a 100%);
    border: 2px solid var(--accent-cyan);
    color: var(--primary-text);
    box-shadow: 0 2px 24px 0 rgba(0,206,209,0.08), 0 4px 24px 0 rgba(74,144,226,0.10);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    box-shadow: 0 0 32px 8px var(--accent-cyan), 0 2px 8px rgba(74,144,226,0.18);
    border-color: var(--accent-blue);
    background: linear-gradient(120deg, var(--accent-navy) 40%, var(--accent-cyan) 100%);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #DEDEDE;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

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

.project-content {
    padding: 24px;
}

.project-category {
    color: #00ffe7;
    font-size: 13px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 8px #0ff6, 0 0 2px #0ffb;
}

.project-title {
    color: #fff;
    font-size: 22px;
    font-family: 'Kanit', 'Source Code Pro', monospace;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px #0ff4, 0 0 2px #0ffb;
}

.project-description {
    color: #b6eaff;
    font-size: 16px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 500;
    margin-bottom: 22px;
    line-height: 1.7;
    text-shadow: 0 1px 6px #0ff2;
}

.project-btn {
    display: inline-flex;
    padding: 8px 16px;
    background: var(--accent-cyan);
    color: #181c24;
    text-decoration: none;
    border-radius: 100px;
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid var(--accent-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.project-btn:hover::before {
    left: 100%;
}

.project-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-cyan);
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
}

.reviews-header {
    text-align: center;
    margin-bottom: 80px;
}

.reviews-header h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
}

.reviews-header p {
    font-size: 25px;
    font-weight: 300;
}

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

.review-card {
    background: white;
    border-radius: 12px;
    box-shadow: 5px 4px 0px 2px black;
    border: 2px solid black;
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 6px 0px 2px black;
}

.review-avatar {
    width: 144px;
    background: #DEDEDE;
    flex-shrink: 0;
    position: relative;
}

.review-avatar::after {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    opacity: 0.5;
}

.review-content {
    padding: 24px;
    flex: 1;
}

.review-category {
    color: #666666;
    font-size: 12px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-name {
    color: black;
    font-size: 18px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 500;
    margin-bottom: 16px;
}

.review-text {
    color: #666666;
    font-size: 14px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    padding: 0;
    margin: 0;
    width: 100vw;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -2px 24px 0 rgba(0,206,209,0.12), 0 -4px 24px 0 rgba(74,144,226,0.18);
    border-top: 2px solid var(--accent-cyan);
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 32px;
    font-size: 15px;
}

.footer-links a {
    color: #00ffe7;
    margin-left: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Kanit', 'Source Code Pro', monospace;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ffe7;
}

@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        padding: 10px 6px;
        font-size: 13px;
    }

    .footer-links a {
        margin-left: 0;
        margin-right: 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 60px;
        line-height: 70px;
    }

    .about h2 {
        font-size: 80px;
        line-height: 90px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 18px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-image-bg {
        width: 300px;
        height: 450px;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

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

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
    will-change: transform, width, height;
    mix-blend-mode: difference;
    opacity: 1;
}

.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background: rgba(74, 144, 226, 0.2);
    border: 2px solid var(--accent-blue);
    backdrop-filter: blur(5px);
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.custom-cursor.cursor-hover::after {
    opacity: 0;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
}

/* Disable default cursor only on desktop when custom cursor is active */
@media (min-width: 769px) {
    body.custom-cursor-active {
        cursor: none;
    }

    body.custom-cursor-active * {
        cursor: none !important;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-image,
    .js-decoration {
        transform: none !important;
    }

    .custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

/* Performance optimizations */
.animate-on-scroll,
.hero-image,
.js-decoration,
.skill-card,
.project-card,
.review-card {
    contain: layout style paint;
}

/* GPU acceleration for smooth animations */
.hero-image-bg,
.skill-card,
.project-card,
.review-card,
.btn-primary,
.btn-contact,
.project-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
