/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: rgba(255, 255, 255, 0.1);
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: rgba(0, 0, 0, 0.3);
    --border-color: #374151;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    cursor: none;
}

/* Accessibility helpers */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 11000;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    opacity: 0.5;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-text {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.loading-text span {
    display: inline-block;
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

.loading-text span:nth-child(1) { animation-delay: -0.32s; }
.loading-text span:nth-child(2) { animation-delay: -0.16s; }
.loading-text span:nth-child(3) { animation-delay: 0s; }
.loading-text span:nth-child(4) { animation-delay: 0.16s; }

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out;
}

@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Particle Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 400px;
    height: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.profile-round {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 45%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.profile-round:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.image-container:hover .center-image {
    transform: scale(1.05);
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-element:nth-child(1) { top: 10%; right: 10%; }
.floating-element:nth-child(2) { bottom: 10%; right: 20%; }
.floating-element:nth-child(3) { bottom: 20%; left: 10%; }
.floating-element:nth-child(4) { top: 20%; left: 20%; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: var(--text-light);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: scrollLine 2s ease-in-out infinite;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
}
.skill-info span:first-child {
    color: var(--text-primary);
}
.skill-info span:last-child {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 0.85rem;
    line-height: 1;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(99,102,241,0.35);
}

/* Optional decorative ring using CSS var set via JS */
.skill-item::before,
.skill-item::after { content: none; }

.skill-bar {
    display: none;
}

.skill-progress {
    display: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch; /* ensures all cards in a row are equal height */
}

/* Project Card */
.project-card {
  background: #1c1f26; /* matches your dark theme */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 500px; /* 🔑 makes all cards same height */
}

/* Image */
.project-image {
  position: relative;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 220px; /* 🔑 fixed height for uniform images */
  object-fit: cover; /* keeps aspect ratio but crops */
  display: block;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.project-image:hover .project-overlay {
  opacity: 1;
}

/* Content */
.project-content {
  padding: 20px;
  flex: 1; /* fill remaining height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keep tech stack at bottom */
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.project-content p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #ddd;
  line-height: 1.5;
}

.project-tech {
  margin-top: auto; /* pushes tags down */
}

.project-tech span {
  display: inline-block;
  background: #4a4de7;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 3px;
  color: #fff;
}


/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--bg-primary);
    padding: 0 0.5rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        inset: 60px 0 0 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        padding: 1rem 1.25rem;
        z-index: 1200;
    }
    .nav-menu.active { display: block; }
    .nav-menu li { margin: 0.75rem 0; }
    .nav-menu .nav-link {
        display: block;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        padding: 0.9rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title { font-size: 2rem; }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container { padding: 0 1rem; }
    section { padding: 3rem 0; }
    .image-container { width: 260px; height: 260px; }
    .project-image img { height: 200px; }
    .section-title { font-size: 1.6rem; }
    .section-header { margin-bottom: 2rem; }
    .hero-description { font-size: 1rem; }
    .timeline::before { display: none; }
    .timeline-dot { display: none; }
    .timeline-item { margin-left: 0; }
    .timeline-content { border-left: 3px solid var(--primary-color); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .image-container { width: 220px; height: 220px; }
    .project-image img { height: 180px; }
    .nav-menu .nav-link { font-size: 0.95rem; }
    .about-stats { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 250px; justify-content: center; padding: 0.7rem 1.2rem; }
}

/* Scroll To Top */
/* Experience Section */
.experience {
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-left: 60px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -12px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-medium);
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tags { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.tags span { background: var(--primary-color); color: #fff; border-radius: 999px; padding: .2rem .6rem; font-size: .75rem; }

/* Expertise */
.expertise { background: var(--bg-secondary); }
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.expertise-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

/* Achievements */
.achievements { background: var(--bg-primary); }
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .timeline::before { left: 12px; }
    .timeline-item { margin-left: 44px; }
    .timeline-dot { left: -16px; }
}
.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile-specific overrides placed at end to win cascade */
@media (max-width: 768px) {
    /* Fullscreen overlay menu */
    .nav-menu {
        position: fixed;
        inset: 60px 0 0 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(10px);
        padding: 1rem 1.25rem;
    }
    .nav-menu li { margin: 0.75rem 0; }
    .nav-menu .nav-link {
        display: block;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        padding: 0.9rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
    }

    /* Hero tightening */
    .hero { padding-top: 4.5rem; }
    .hero-content { gap: 1.5rem; }
    .hero-title { font-size: 2rem; line-height: 1.25; }
    .hero-description { font-size: 1rem; }
    .hero-image { order: -1; }
    .image-container { width: 260px; height: 260px; }
    .floating-elements, #particles, .scroll-indicator { display: none; }

    /* Timeline simplification */
    .timeline::before, .timeline-dot { display: none; }
    .timeline-item { margin-left: 0; }
    .timeline-content { border-left: 3px solid var(--primary-color); }

    /* Cards & layout scaling */
    .project-image img { height: 200px; }
    .section-title { font-size: 1.6rem; }
    .section-header { margin-bottom: 2rem; }
    .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .image-container { width: 220px; height: 220px; }
    .project-image img { height: 180px; }
    .nav-menu .nav-link { font-size: 0.95rem; }
    .about-stats { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 250px; justify-content: center; padding: 0.7rem 1.2rem; }
}

/* Touch devices: reduce hover transforms to prevent jank */
@media (hover: none), (pointer: coarse) {
    .project-card:hover { transform: none; box-shadow: var(--shadow-medium); }
    .project-card:hover .project-image img { transform: none; }
}

/* Prevent background scroll when menu is open */
body.menu-open { overflow: hidden; }

.watermark {
  position: fixed;
  top: 40%;
  left: 20%;
  font-size: 2rem;
  color: rgba(0,0,0,0.15);
  transform: rotate(-30deg);
  pointer-events: none;
  user-select: none;
}
