/* ALGLASS IKE - Responsive Styles */

/* Mobile First Approach */
/* Base: 0px and up */

/* Tablet: 768px and up */
@media (min-width: 768px) {
  /* Navigation */
  .nav-menu {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  
  .hamburger {
    display: none;
  }
  
  /* Hero adjustments */
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 32px;
  }
  
  /* Logo adjustments for tablets */
  .logo-icon {
    height: 45px;
    max-width: 100%;
    max-height: 45px;
  }
  
  .hero-logo-icon {
    height: 140px;
    max-width: 100%;
    max-height: 140px;
  }
  
  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Portfolio grid */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Why us grid */
  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Contact form */
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
  /* Typography adjustments */
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  /* Container padding */
  .container {
    padding: 0 2rem;
  }
  
  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Portfolio grid */
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Navigation spacing */
  .nav-menu {
    gap: 2.5rem;
  }
  
  .nav-link {
    font-size: 1rem;
  }
}

/* Large Desktop: 1280px and up */
@media (min-width: 1280px) {
  /* Container max-width */
  .container {
    max-width: 1200px;
  }
  
  /* Hero content */
  .hero-container {
    max-width: 900px;
  }
  
  /* About content */
  .about-content {
    max-width: 900px;
  }
  
  /* Service cards */
  .service-card {
    padding: 3rem;
  }
  
  /* Portfolio items */
  .portfolio-item {
    height: 300px;
  }
  
  .portfolio-image {
    height: 100%;
  }
}

/* Extra Large: 1440px and up */
@media (min-width: 1440px) {
  /* Typography scale */
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  /* Section padding */
  .about,
  .services,
  .why-us,
  .portfolio,
  .contact {
    padding: 10rem 0;
  }
  
  /* Hero min-height */
  .hero {
    min-height: 100vh;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 1024px) {
  .contact-card { padding: 0; }
  /* Mobile navigation */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 55px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1.5rem;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* Mobile hero adjustments */
  .hero {
    min-height: 90vh;
    padding-top: 60px;
  }
  
  .hero-logo-icon {
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
  }
  
  .hero-title {
    font-size: 32px;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 32px;
    margin-bottom: 2rem;
  }
  
  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  /* Mobile logo adjustments */
  .nav-logo {
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }
  
  /* Mobile section adjustments */
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about,
  .services,
  .why-us,
  .portfolio,
  .contact {
    padding: 5rem 0;
  }
  
  /* Mobile service cards */
  .service-card {
    padding: 2rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  /* Mobile portfolio */
  .portfolio-item {
    height: 200px;
  }
  
  .portfolio-image {
    height: 100%;
  }
  
  /* Mobile contact */
  .contact-form {
    padding: 2rem;
  }
  
  .contact-info {
    padding: 1rem 0;
  }
  
  /* Mobile footer */
  .footer {
    padding: 1.5rem 0;
  }
  .contact-inline {
    gap: 0.75rem;
  }
  .contact-divider {
    height: 18px;
  }
}

/* Small Mobile: 480px and down */
@media (max-width: 480px) {
  .contact-card { padding: 0; }
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  /* Container padding */
  .container {
    padding: 0 0.75rem;
  }
  
  .nav-container {
    padding: 0 0.75rem;
  }
  
  .hero-container {
    padding: 0 0.75rem;
  }
  
  /* Section padding */
  .about,
  .services,
  .why-us,
  .portfolio,
  .contact {
    padding: 4rem 0;
  }
  
  /* Service area */
  .service-area {
    padding: 4rem 0;
  }
  
  /* Service cards */
  .service-card {
    padding: 1.5rem;
  }
  
  /* Portfolio grid */
  .portfolio-grid {
    gap: 1rem;
  }
  
  /* Contact form */
  .contact-card {
    padding: 1.25rem;
    border-radius: 14px;
  }
  
  .form-input,
  .form-textarea {
    padding: 0.875rem;
  }
  
  /* Logo adjustments */
  .logo-text {
    font-size: 1.25rem;
  }

  /* Hero logo */
  .hero-logo-icon {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
  }
  
  /* Ensure logo images don't overflow */
  .logo-icon img,
  .hero-logo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  /* Navigation height */
  .nav-container {
    height: 100px;
  }
  
  .navbar {
    height: 100px;
  }
}
}
  
  /* Hero padding adjustment */
  .hero {
    padding-top: 70px;
  }
}

/* Extra Small: 360px and down */
@media (max-width: 360px) {
  /* Minimal adjustments for very small screens */
  .container {
    padding: 0 0.5rem;
  }
  
  .nav-container {
    padding: 0 0.5rem;
  }
  
  .hero-container {
    padding: 0 0.5rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .contact-form {
    padding: 1.25rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Logo sizing for very small screens */
  .logo-text {
    font-size: 1.1rem;
  }

  .hero-logo-icon {
    width: 70px;
    height: 70px;
    max-width: 70px;
    max-height: 70px;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp text and graphics */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Optimize images for retina */
  .portfolio-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  /* Adjust hero for landscape mobile */
  .hero {
    min-height: 120vh;
    padding-top: 60px;
  }
  
  .hero-logo {
    margin-bottom: 1.5rem;
  }
  
  .hero-logo-icon {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
  }
  
  .hero-title {
    font-size: 28px;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-scroll {
    display: none;
  }
  
  /* Landscape navigation logo */
  .logo-icon {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and non-essential elements */
  .navbar,
  .hero-scroll,
  .contact-form {
    display: none;
  }
  
  /* Adjust colors for print */
  body {
    color: #000;
    background: #fff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
  }
  
  /* Ensure readable text */
  p {
    color: #333;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  /* Page breaks */
  .about,
  .services,
  .why-us,
  .portfolio,
  .contact {
    page-break-inside: avoid;
    padding: 2rem 0;
  }
}

/* Mobile logo correction (final overrides) */
@media (max-width: 767px) {
  .nav-container, .navbar { height: 55px !important; }
  .navbar .logo-icon { height: 35px !important; max-height: 35px !important; width: auto !important; object-fit: contain !important; }
}
@media (max-width: 480px) {
  .nav-container, .navbar { height: 55px !important; }
  .navbar .logo-icon { height: 35px !important; max-height: 35px !important; width: auto !important; object-fit: contain !important; }
}
