/* Additional responsive design styles */
@media screen and (max-width: 992px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media screen and (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .portfolio-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .contact-form {
    padding: 0 1rem;
  }
  
  }
}

@media screen and (max-width: 576px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero {
    padding: 1.5rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .social-links a {
    margin: 0 0.5rem;
    font-size: 1.25rem;
  }
  
  footer {
    padding: 0.75rem 0;
  }
}

/* Fix for mobile navigation overlay */
@media screen and (max-width: 768px) {
  body.nav-active {
    overflow: hidden;
  }
  
  nav {
    width: 200px;
    z-index: 1000;
  }
  
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .overlay.active {
    display: block;
  }
}

/* Improved touch targets for mobile */
@media screen and (max-width: 576px) {
  nav ul li {
    margin: 1rem 0;
  }
  
  nav ul li a {
    padding: 0.5rem;
    display: block;
  }
  
  button, 
  .read-more {
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    min-width: 44px;
  }
  
  input, 
  textarea {
    padding: 0.75rem;
    min-height: 44px;
  }
  
  .social-links a {
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Timeline Responsive Styles */
@media screen and (max-width: 768px) {
  .timeline {
    padding: 2rem 1rem;
    gap: 1.2rem;
    min-height: 250px;
  }
  
  .timeline-item {
    width: 160px;
  }
  
  .timeline-item:nth-child(odd) {
    padding-bottom: calc(50% - 5px);
  }
  
  .timeline-item:nth-child(even) {
    padding-top: calc(50% - 5px);
  }
  
  .timeline-date {
    font-size: 0.95rem;
  }
  
  .timeline-content {
    min-height: 90px;
    padding: 0.9rem;
  }
  
  .timeline-item:nth-child(1) .timeline-content,
  .timeline-item:nth-child(2) .timeline-content,
  .timeline-item:nth-child(3) .timeline-content {
    transform: rotate(-1.5deg);
  }
  
  .timeline-item:nth-child(4) .timeline-content {
    transform: rotate(0deg);
  }
  
  .timeline-item:nth-child(5) .timeline-content,
  .timeline-item:nth-child(6) .timeline-content,
  .timeline-item:nth-child(7) .timeline-content {
    transform: rotate(1.5deg);
  }
  
  .timeline-content:hover {
    transform: rotate(0deg) translateY(-4px) scale(1.02) !important;
  }
  
  .timeline-content h3 {
    font-size: 0.9rem;
  }
  
  .timeline-content p {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 576px) {
  .timeline-section {
    padding: 2rem 0;
  }
  
  .timeline {
    padding: 2rem 0.5rem;
    gap: 1rem;
    min-height: 230px;
  }
  
  .timeline-item {
    width: 150px;
  }
  
  .timeline-item:nth-child(odd) {
    padding-bottom: calc(50% - 5px);
  }
  
  .timeline-item:nth-child(even) {
    padding-top: calc(50% - 5px);
  }
  
  .timeline-date {
    font-size: 0.9rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-date {
    margin-top: 0.5rem;
  }
  
  .timeline-item:nth-child(even) .timeline-date {
    margin-bottom: 0.5rem;
  }
  
  .timeline-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
  
  .timeline-item:hover .timeline-dot {
    width: 14px;
    height: 14px;
  }
  
  .timeline-content {
    padding: 0.8rem;
    min-height: 85px;
  }
  
  .timeline-item:nth-child(1) .timeline-content,
  .timeline-item:nth-child(2) .timeline-content,
  .timeline-item:nth-child(3) .timeline-content {
    transform: rotate(-1deg);
  }
  
  .timeline-item:nth-child(4) .timeline-content {
    transform: rotate(0deg);
  }
  
  .timeline-item:nth-child(5) .timeline-content,
  .timeline-item:nth-child(6) .timeline-content,
  .timeline-item:nth-child(7) .timeline-content {
    transform: rotate(1deg);
  }
  
  .timeline-content:hover {
    transform: rotate(0deg) translateY(-3px) scale(1.01) !important;
  }
  
  .timeline-content h3 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .timeline-content p {
    font-size: 0.78rem;
    line-height: 1.3;
  }
}

/* Print styles */
@media print {
  header, 
  footer, 
  .hamburger,
  button,
  .contact-form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p, blockquote, ul, ol, dl, table {
    page-break-inside: avoid;
  }
}
