/* Responsive Design for InFINity Finance Club Website */

/* Tablet Styles */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--background-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 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: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 250px;
    }
    
    /* About Section */
    .about-grid {
        gap: 1rem;
    }
    
    .about-section {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .mission-points {
        gap: 0.75rem;
    }
    
    .point {
        font-size: 0.9rem;
    }
    
    .vision-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-year {
        font-size: 1rem;
    }
    
    /* Events */
    .events-grid {
        gap: 1rem;
    }
    
    .event-card {
        margin-bottom: 1rem;
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-description {
        font-size: 0.9rem;
    }
    
    .event-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
    }
    
    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 0.375rem;
        background: var(--primary-color);
        color: var(--text-light);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .btn-small:hover {
        background: var(--secondary-color);
        transform: translateY(-1px);
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .team-image .image-placeholder {
        height: 150px;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    /* Collaboration */
    .collaboration-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Members Grid */
    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .member-card {
        padding: 1rem;
    }
    
    .member-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Filter Tabs */
    .filter-tabs,
    .year-tabs {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-tab,
    .year-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        min-width: max-content;
    }
    
    /* Page Header */
    .page-header {
        height: 40vh;
        margin-top: 70px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
        text-align: center;
    }
    
    /* Modal Styles */
    .event-modal .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .event-details {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
    
    .registration-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .registration-form input {
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 0.375rem;
        font-size: 1rem;
    }
    
    /* Resources */
    .resource-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .resource-category {
        padding: 1.5rem;
    }
    
    .resource-category h3 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Animations */
    .fade-up {
        transform: translateY(20px);
    }
    
    .fade-up.animate {
        transform: translateY(0);
    }
    
    /* Utilities */
    .mt-4 {
        margin-top: 1.5rem;
    }
    
    /* Navbar scroll effect */
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-medium);
    }
    
    /* Back to top button mobile styles */
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
    
    /* Notification mobile styles */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 80px;
    }
    
    .notification-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Loading screen mobile */
    #loadingScreen .loader-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Search results mobile */
    #searchResults {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-light);
        border-radius: 0.5rem;
        box-shadow: var(--shadow-medium);
        z-index: 100;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .search-result-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        color: var(--text-secondary);
        text-decoration: none;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
    }
    
    .search-result-item:hover {
        background: var(--background-dark);
        color: var(--primary-color);
    }
    
    .search-no-results {
        padding: 1rem;
        text-align: center;
        color: var(--text-secondary);
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Styles */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .about-card,
    .service-card,
    .collaboration-card,
    .team-card {
        margin: 0 0.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .filter-tab,
    .year-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Large Screen Styles */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
        max-width: 700px;
    }
    
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .hero-buttons,
    .btn,
    .social-links,
    #backToTop,
    .notification {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-content {
        color: var(--text-primary);
    }
    
    section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .page-header {
        height: auto;
        padding: 2rem 0;
    }
    
    .header-overlay {
        display: none;
    }
    
    .page-title,
    .hero-title {
        color: var(--text-primary);
    }
    
    .footer {
        border-top: 1px solid var(--border-color);
        background: var(--background-light);
        color: var(--text-primary);
    }
}
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-section.reverse {
        direction: ltr;
    }
    
    .vision-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Events Grid */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    /* Page Header */
    .page-header {
        height: 50vh;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }


/* Mobile Styles */
@media screen and (max-width: 480px) {
    /* Base */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .nav-menu {
        top: 70px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* Hero Section */
    .hero {
        height: 90vh;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .about-card,
    .service-card,
    .collaboration-card {
        padding: 1.5rem;
    }
    
    .card-icon,
    .service-icon,
    .collab-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}    
    /* About Section */