/* ===== MOBILE OPTIMIZATIONS FOR HICCUPS MEDIA ===== */

/* Hide desktop navigation on mobile */
@media (max-width: 1200px) {
    .nav-links {
        display: none !important;
    }
    
    .contact-btn {
        display: none !important;
    }
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1201;
    position: relative;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 3px 0;
    background: #e5d2b0;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1198;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Ensure hamburger is always visible on mobile */
@media (max-width: 1200px) {
    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1200;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    background: transparent;
    padding: 2rem;
}

.mobile-nav.active {
    display: flex;
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    position: relative;
    z-index: 1201;
}

.mobile-nav.active ul {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav ul li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav ul li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav ul li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav ul li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav ul li a {
    color: #e5d2b0;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    white-space: nowrap;
    text-align: center;
}

.mobile-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c69c6d, #e5d2b0, #c69c6d);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav ul li a:hover::after,
.mobile-nav ul li a.active::after {
    width: 80%;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: #f0e6d2;
    background: rgba(198, 156, 109, 0.1);
}

/* Mobile CTA Button */
.mobile-nav .mobile-cta {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.6s;
    position: relative;
    z-index: 1201;
}

.mobile-nav.active .mobile-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav .mobile-cta .contact-btn {
    display: inline-block !important;
    background: linear-gradient(135deg, #c69c6d, #e8c28d);
    color: #1a1a1a;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(198, 156, 109, 0.2);
    font-size: 1.1rem;
}

.mobile-nav .mobile-cta .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 156, 109, 0.3);
    background: linear-gradient(135deg, #e1b97c, #f3d1a3);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

@media (max-width: 1200px) {
    /* Show hamburger menu */
    .hamburger {
        display: flex !important;
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* Navigation layout */
    .nav {
        padding: 0 1rem;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .logo {
        order: 1;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .logo-text-img {
        height: 35px;
    }
    
    /* Hero section mobile optimizations */
    .hero {
        padding-top: 100px; /* Reduced padding for mobile */
        padding-bottom: 80px; /* Increased bottom padding */
        min-height: calc(100vh + 100px); /* Increased height to push content down */
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem); /* Better mobile font scaling */
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 1rem;
        overflow-wrap: break-word; /* Prevent breaking words in the middle */
        word-break: keep-all; /* Keep words intact */
        hyphens: auto; /* Enable hyphenation for long words */
    }
    
    .hero p {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 1rem;
        max-width: 100%;
        overflow-wrap: break-word; /* Prevent breaking words in the middle */
        word-break: keep-all; /* Keep words intact */
        hyphens: auto; /* Enable hyphenation for long words */
    }
    
    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }
    
    .hero-clients {
        margin-top: 2rem;
    }
    
    .hero-clients-header {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-logo-container {
        height: 80px;
    }
    
    .hero-logo-item {
        width: 150px;
        height: 70px;
        padding: 15px;
    }
    

    
    /* Services */
    .services {
        padding-top: 4rem; /* Add extra top padding to push section down */
    }
    
    /* Make services and testimonials headings match CTA and About headings */
    .services .section-title,
    .testimonials .section-title,
    .portfolio .section-title {
        font-size: 1.8rem !important; /* Match the size of CTA and About headings */
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* About */
    .about {
        padding: 2rem 1rem 5rem 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem !important;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .team-text h2 {
        font-size: 1.6rem !important;
        padding-bottom: 0 !important;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-image {
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .about-image img {
        width: 175px;
        height: auto;
        max-height: 225px;
    }
    
    /* Team Section Mobile Styles */
    .team-section {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .team-section > * {
        margin-bottom: 0;
    }
    .team-section .founder-image,
    .team-section .aryan-image {
        margin-bottom: 2rem;
    }
    .team-section .team-text,
    .team-section .aryan-text {
        margin-bottom: 2rem;
    }
    
    .team-text h2 {
        font-size: 1.8rem !important;
        margin-bottom: -7rem;
    }
    
    .team-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .founder-image {
        height: 300px;
        align-items: flex-start;
    }
    
    .founder-container {
        width: 280px;
        height: 300px;
    }
    
    .founder-img {
        width: 220px;
        max-height: 280px;
    }
    
    .founder-info {
        bottom: -40px;
    }
    
    .founder-info h3 {
        font-size: 1.3rem;
    }
    
    .founder-info p {
        font-size: 0.9rem;
    }
    
    /* Removed rotating elements */
    
    /* Portfolio */
    .portfolio {
        padding: 5rem 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-item {
        height: 120px;
    }
    
    .category-title {
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 3rem 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-info h4 {
        font-size: 1rem;
    }
    
    .testimonial-info p {
        font-size: 0.9rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Contact */
    .contact {
        padding: 3rem 1rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-left h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-left p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-details {
        gap: 1.5rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .contact-detail-content h3 {
        font-size: 1.1rem;
    }
    
    .contact-detail-content p {
        font-size: 0.95rem;
    }
    
    .contact-right {
        padding: 1.5rem;
    }
    
    .contact-form-container h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile-friendly service selection */
    .mobile-service-select {
        display: none;
        width: 100%;
        padding: 0.8rem;
        background: rgba(198, 156, 109, 0.1);
        border: 1px solid rgba(198, 156, 109, 0.3);
        border-radius: 8px;
        color: #e5d2b0;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .mobile-service-select option {
        background: #1a1a1a;
        color: #e5d2b0;
        padding: 0.5rem;
    }
    
    .mobile-service-toggle {
        display: block;
        width: 100%;
        padding: 0.8rem;
        background: linear-gradient(135deg, #c69c6d, #e8c28d);
        color: #1a1a1a;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-service-toggle:hover {
        background: linear-gradient(135deg, #e1b97c, #f3d1a3);
        transform: translateY(-1px);
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-height: 200px;
        overflow-y: auto;
        padding: 0.5rem;
        border: 1px solid rgba(198, 156, 109, 0.3);
        border-radius: 8px;
        background: rgba(198, 156, 109, 0.05);
        display: none;
    }
    
    .mobile-service-select {
        display: block;
    }
    
    .service-card {
        margin-bottom: 0.5rem;
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .service-card span {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .newsletter-form {
        flex-direction: row !important;
        gap: 0.5rem;
        align-items: center;
    }
    .newsletter-form input {
        font-size: 1rem;
        padding: 0.7rem;
    }
    .newsletter-form button {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    .newsletter-form input {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .newsletter-form button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 1rem;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 0.5rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text-img {
        height: 30px;
    }
    
    /* Hero section for very small screens */
    .hero {
        padding-top: 80px;
        padding-bottom: 30px;
        min-height: calc(100vh - 80px);
    }
    
    .hero h1,
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.3;
        margin-bottom: 0.8rem;
        padding: 0 0.5rem;
        overflow-wrap: break-word; /* Prevent breaking words in the middle */
        word-break: keep-all; /* Keep words intact */
        hyphens: auto; /* Enable hyphenation for long words */
    }
    
    .hero p {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        line-height: 1.4;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        overflow-wrap: break-word; /* Prevent breaking words in the middle */
        word-break: keep-all; /* Keep words intact */
        hyphens: auto; /* Enable hyphenation for long words */
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-clients {
        margin-top: 1.5rem;
    }
    
    .hero-clients-header {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .hero-logo-container {
        height: 60px;
    }
    
    .hero-logo-item {
        width: 120px;
        height: 50px;
        padding: 10px;
    }
    
    .hero-logo-item img {
        max-height: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .portfolio-item {
        margin-bottom: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .contact-left h2 {
        font-size: 1.8rem;
    }
    
    .contact-form-container h2 {
        font-size: 1.8rem;
    }
    
    .mobile-nav ul li a {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
    }
    
    .mobile-nav .mobile-cta .contact-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Medium screens - Grid layouts for services and portfolio */
@media (min-width: 700px) and (max-width: 959px) {
    .services-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 960px) and (max-width: 1200px) {
    .services-grid, .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .services-grid {
        align-items: stretch;
    }
    .service-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 375px) {
    .hero {
        padding-top: 70px;
        padding-bottom: 25px;
        min-height: calc(100vh - 70px);
    }
    
    .hero h1 {
        font-size: clamp(1.6rem, 6.5vw, 2.2rem);
        line-height: 1.3;
        margin-bottom: 0.7rem;
        padding: 0 0.3rem;
        overflow-wrap: break-word; /* Prevent breaking words in the middle */
        word-break: keep-all; /* Keep words intact */
        hyphens: auto; /* Enable hyphenation for long words */
    }
    
    .hero p {
        font-size: clamp(0.8rem, 3vw, 0.95rem);
        line-height: 1.4;
        margin-bottom: 1.3rem;
        padding: 0 0.3rem;
        overflow-wrap: break-word; /* Prevent breaking words in the middle */
        word-break: keep-all; /* Keep words intact */
        hyphens: auto; /* Enable hyphenation for long words */
    }
    
    .hero-content {
        padding: 0 0.3rem;
    }
    
    .hero-clients {
        margin-top: 1.2rem;
    }
    
    .hero-clients-header {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .hero-logo-container {
        height: 50px;
    }
    
    .hero-logo-item {
        width: 100px;
        height: 40px;
        padding: 8px;
    }
    
    .hero-logo-item img {
        max-height: 25px;
    }
    
    .portfolio-item {
        margin-bottom: 0.8rem;
    }
    
    .about-image img {
        width: 175px;
        height: auto;
        max-height: 225px;
    }
    
    .founder-container {
        width: 250px;
        height: 250px;
    }
    
    .founder-img {
        width: 200px;
        max-height: 240px;
    }
    
    .founder-info h3 {
        font-size: 1.2rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (max-width: 1200px) {
    /* Improve touch targets */
    .nav-links a,
    .contact-btn,
    .service-card,
    .portfolio-item,
    .testimonial-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px;
    }
    
    /* Improve scrolling performance */
    .hero,
    .services,
    .about,
    .portfolio,
    .testimonials,
    .cta-section,
    .contact {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (max-width: 1200px) {
    /* Focus indicators for keyboard navigation */
    .hamburger:focus,
    .mobile-nav ul li a:focus,
    .contact-btn:focus {
        outline: 2px solid #c69c6d;
        outline-offset: 2px;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .mobile-nav ul li a {
            color: #ffffff;
            border: 1px solid #e5d2b0;
        }
        
        .hamburger span {
            background: #ffffff;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .mobile-nav,
        .mobile-nav ul,
        .mobile-nav ul li,
        .mobile-nav .mobile-cta,
        .hamburger span {
            transition: none;
        }
    }
}

@media (max-width: 1200px) {
    .filter-btn:hover,
    .filter-btn:active,
    .filter-btn:focus {
        background: rgba(198, 156, 109, 0.1) !important;
        color: #e5d2b0 !important;
        border-color: rgba(198, 156, 109, 0.3) !important;
    }
    .filter-btn.active {
        background: linear-gradient(135deg, #c69c6d, #e8c28d) !important;
        color: #1a1a1a !important;
        border-color: #c69c6d !important;
    }
}

@media (max-width: 1200px) {
    .footer-section a,
    .footer a {
        color: inherit !important;
        -webkit-text-fill-color: inherit !important;
    }
    .footer-section a[href^='tel:'],
    .footer a[href^='tel:'] {
        color: #e5d2b0 !important;
        -webkit-text-fill-color: #e5d2b0 !important;
        text-decoration: none !important;
    }
}

@media (max-width: 1200px) {
    .footer .social-links a {
        color: #e5d2b0 !important;
        background: rgba(198, 156, 109, 0.2) !important;
    }
    .footer .social-links a:hover {
        background: linear-gradient(135deg, #c69c6d, #e5d2b0) !important;
        color: #1a1a1a !important;
    }
}

@media (max-width: 1200px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1200px) {
  .team-section {
    gap: 2.2rem;
    margin-top: 2.2rem;
    margin-bottom: 2.2rem;
  }
  .team-section .founder-image,
  .team-section .aryan-image,
  .team-section .team-text,
  .team-section .aryan-text {
    margin-bottom: 1.7rem;
  }
}

@media (max-width: 1200px) {
  .team-section .aryan-text {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1200px) {
  .about {
    padding-bottom: 0 !important;
  }
}