/* Responsive Styles for SNR Media Solutions */

/* Large Screens (1300px and below) */
@media(max-width:1300px) {
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .values-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Tablet and Medium Screens (992px and below) */
@media(max-width:992px) {
    .navbar, 
    .navbar.scrolled { 
        padding: 18px 25px; 
    }
    
    .hero-content, 
    .section, 
    .footer { 
        padding-left: 25px; 
        padding-right: 25px; 
    }
    
    /* Hide desktop navigation on mobile */
    .nav-links, 
    .nav-btn { 
        display: none; 
    }
    
    /* Show mobile menu button */
    .menu-toggle { 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
    
    .hero-text h1 { 
        font-size: 48px; 
    }
    
    .about-grid, 
    .footer-grid, 
    .founder-grid, 
    .market-grid { 
        grid-template-columns: 1fr; 
    }
    
    .services-grid, 
    .achievement-grid { 
        grid-template-columns: 1fr; 
    }
    
    .section-title { 
        font-size: 42px; 
    }
    
    /* Mobile menu adjustments */
    .mobile-menu {
        width: 85%;
        max-width: 350px;
    }
}

/* Small Tablets and Large Phones (768px and below) */
@media(max-width:768px) {
    .hero-content { 
        padding-top: 130px; 
        padding-bottom: 60px;
    }
    
    .hero-text h1 { 
        font-size: 40px; 
    }
    
    .hero-text p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .services-grid, 
    .values-grid { 
        grid-template-columns: 1fr; 
    }
    
    .section { 
        padding-top: 80px; 
        padding-bottom: 80px; 
    }
    
    .glass-card, 
    .service-card, 
    .value-card { 
        padding: 30px; 
    }
    
    .footer h2 { 
        font-size: 32px; 
    }
    
    .footer-grid {
        gap: 40px;
    }
    
    .contact-card {
        padding: 30px;
    }
    
    .founder-card {
        padding: 30px;
    }
    
    .founder-grid {
        grid-template-columns: 1fr;
    }
    
    .founder-img img {
        max-width: 100%;
    }
}

/* Mobile Phones (480px and below) */
@media(max-width:480px) {
    .hero-text h1 { 
        font-size: 32px; 
        letter-spacing: -1px;
    }
    
    .hero-text p { 
        font-size: 14px; 
    }
    
    .btn-primary, 
    .btn-secondary { 
        width: 100%; 
        text-align: center; 
        padding: 14px 20px;
    }
    
    .logo { 
        font-size: 12px; 
        padding: 10px 16px; 
    }
    
    .logo i {
        font-size: 14px;
    }
    
    .mobile-menu { 
        width: 100%; 
        max-width: 100%;
    }
    
    .hero-badge { 
        width: 100%; 
        justify-content: center; 
        padding: 10px 16px;
    }
    
    .hero-badge span {
        font-size: 10px;
    }
    
    /* Hero section fixes */
    .hero { 
        height: auto; 
        min-height: 100vh; 
    }
    
    .hero-content { 
        min-height: 100vh; 
        padding: 110px 20px 60px 20px; 
        align-items: center;
    }
    
    .hero-text {
        width: 100%;
        text-align: center;
    }
    
    .hero-text h1 { 
        font-size: 28px; 
        line-height: 1.2;
    }
    
    .hero-buttons { 
        flex-direction: column; 
        gap: 12px; 
        width: 100%; 
    }
    
    .btn-primary, 
    .btn-secondary { 
        min-height: 50px; 
        justify-content: center; 
        border-radius: 30px; 
        font-size: 14px;
    }
    
    /* Section adjustments */
    .section-title { 
        font-size: 28px; 
        margin-bottom: 40px;
    }
    
    .section-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .section { 
        padding: 60px 20px; 
    }
    
    /* Card adjustments */
    .glass-card, 
    .service-card, 
    .value-card, 
    .achievement-card, 
    .market-card, 
    .founder-card { 
        padding: 25px; 
    }
    
    .glass-card h3 {
        font-size: 24px;
    }
    
    .service-card h3 {
        font-size: 22px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .achievement-card h3 {
        font-size: 20px;
    }
    
    .value-card {
        padding: 25px 15px;
    }
    
    .value-card i {
        font-size: 28px;
    }
    
    .value-card h3 {
        font-size: 16px;
    }
    
    /* Footer adjustments */
    .footer { 
        padding: 50px 20px; 
    }
    
    .footer h2 { 
        font-size: 28px; 
    }
    
    .footer p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .contact-card div {
        font-size: 13px;
        gap: 10px;
    }
    
    .contact-card i {
        font-size: 18px;
    }
    
    /* Grid adjustments */
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Community section */
    .community p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Form elements */
    input, textarea, select {
        font-size: 14px !important;
    }
    
    /* Table adjustments for admin on mobile */
    .table-container {
        overflow-x: auto;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Extra Small Devices (375px and below) */
@media(max-width:375px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .logo {
        font-size: 10px;
        padding: 8px 12px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-card, 
    .service-card, 
    .value-card, 
    .achievement-card, 
    .market-card, 
    .founder-card {
        padding: 20px;
    }
}

/* Landscape orientation fixes */
@media(max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
    }
    
    .hero-content {
        min-height: auto;
        padding: 100px 20px 40px;
    }
    
    .mobile-menu {
        padding-top: 100px;
        overflow-y: auto;
    }
}

/* Fix for dropdown on mobile */
@media(max-width: 992px) {
    .mobile-menu .dropdown-mobile {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .mobile-menu .dropdown-mobile > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 18px 0;
        margin: 0;
        font-size: 18px;
        font-weight: 500;
        color: white;
        text-decoration: none;
    }
    
    .mobile-menu .dropdown-mobile > a::after {
        content: "▼";
        font-size: 12px;
        transition: transform 0.3s ease;
        margin-left: auto;
    }
    
    .mobile-menu .dropdown-mobile.open > a::after {
        transform: rotate(180deg);
    }
    
    .mobile-menu .mobile-dropdown-content {
        display: none;
        padding-left: 20px;
        background: rgba(0,0,0,0.3);
        border-radius: 12px;
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .mobile-menu .dropdown-mobile.open .mobile-dropdown-content {
        display: block;
    }
    
    .mobile-menu .mobile-dropdown-content a {
        padding: 12px 15px !important;
        font-size: 15px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: block !important;
    }
    
    .mobile-menu .mobile-dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu .mobile-dropdown-content a:hover {
        background: rgba(0,183,234,0.3);
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Better touch targets for mobile */
@media(max-width: 768px) {
    button, 
    .btn-primary, 
    .btn-secondary,
    .nav-links a,
    .mobile-menu a,
    .dropdown-content a {
        min-height: 44px;
    }
    
    input, 
    textarea, 
    select,
    button {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, 
.glass-card, 
.value-card, 
.achievement-card, 
.market-card, 
.founder-card,
.team-card,
.event-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger animations */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }