/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

/* Desktop */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    

    
    .about-content,
    .contact-content,
    .meeting-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .profile-card {
        width: 350px;
        height: 437px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color:  --white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--black-a05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .profile-card {
        width: 300px;
        height: 375px;
    }
    
    /* About Section */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Typography */
    .section-title {
        font-size: 3rem;
    }
    
    /* Spacing */
    .section-padding {
        padding: 60px 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    
    
    .hero-description {
        font-size: 1rem;
    }
    
    .profile-card {
        width: 250px;
        height: 312px;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Forms */
    .contact-form,
    .meeting-form {
        padding: 1.5rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    
    /* Skills */
    .skills-grid {
        gap: 2rem;
    }
    
    .skill-item {
        padding: 1rem;
    }
    
    /* Projects */
    .project-content {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact-details {
        margin: 1.5rem 0;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    
    
    .profile-card {
        width: 220px;
        height: 275px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .profile-card {
        width: 200px;
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-card,
    .project-image img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
    }
    
    .skill-item:hover {
        transform: none;
    }
    
    .stat:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-container,
    .about-content,
    .contact-content,
    .meeting-content {
        animation: none;
    }
    
    .profile-card,
    .project-card,
    .skill-item,
    .stat {
        transition: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .skill-progress::after {
        animation: none;
    }
}

/* Dark Mode Support */
/* @media (prefers-color-scheme: dark) {
    :root {
        --off-white: #1a1a1a;
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --border-color: #333333;
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: #333333;
    }
    
    .hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .about,
    .projects,
    .meeting {
        background: #1a1a1a;
    }
    
    .skills {
        background: #2d2d2d;
    }
    
    .contact {
        background: #2d2d2d;
    }
    
    .contact-form,
    .meeting-form,
    .skill-item,
    .contact-item,
    .benefit {
        background: #1a1a1a;
        border-color: #333333;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #2d2d2d;
        border-color: #333333;
        color: #ffffff;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        background: #1a1a1a;
    }
} */

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .meeting-form,
    .footer,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        min-height: auto !important;
        padding: 1rem 0 !important;
    }
    
    .section-padding {
        padding: 1rem 0 !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .project-overlay {
        display: none !important;
    }
    
    .skill-progress::after {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
      --primary-green: #000000;
      --text-light: #333333;
      --border-color: #666666;
  }
}

/* Accessibility: global reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast focus for accessibility */
@media (prefers-contrast: more) {
  .skill-chip:focus-visible {
    outline: 3px solid var(--accent-gold);
    box-shadow: none;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .skill-card,
  .skill-chip {
    transition: none;
  }
}

/* Small screens */
@media (max-width: 420px) {
  .skill-chip { padding: .55rem .8rem; font-size: .95rem; }
}

@media (max-width:560px){
  .form-row.two{ grid-template-columns:1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .book-panel{ transition:none; }
}

/* Center hero buttons on medium screens */
@media (max-width: 1030px) and (min-width: 769px) {
  .hero-buttons {
    justify-content: center;   /* rows me center */
  }
}



/* Optional subtle divider lines between columns on desktop */
@media (min-width: 801px){
  .stat:nth-child(2){ 
    position: relative;
  }
  .stat:nth-child(2)::before,
  .stat:nth-child(2)::after {
    content: "";
    position: absolute; top: 10%; bottom: 10%;
    width: 1px; background: var(--border-color);
  }
  .stat:nth-child(2)::before { left: -0.9rem; }
  .stat:nth-child(2)::after  { right: -0.9rem; }
}


/* make sure navbar uses this height */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  align-items: center;
}

/* reserve space for the fixed navbar so content doesn't hide under it */
body{
  padding-top: var(--nav-h);
}

/* === Hero stats: mobile behavior === */
@media (max-width: 560px){
  .hero-stats{
    display: grid;
    grid-auto-flow: column;          
    grid-auto-columns: 78%;           
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;    
    padding: 12px 8px 14px;
    background: transparent;          
  } 
}

/* Optional: super-small phones—stack vertically instead of horizontal scroll */
@media (max-width: 360px){
  .hero-stats{
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
}
