/*
=================================================
Main Stylesheet for University Hub
Color Scheme: Blue (#1e3c72, #2196F3), White (#ffffff), Black (#000000)
Persian/Farsi RTL Layout
=================================================
*/

/* ========== CSS Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2196F3;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f5f5f5;
    --gray-medium: #9e9e9e;
    --gray-dark: #424242;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-display);
    background-color: var(--gray-light);
    color: var(--black);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========== Header & Navigation ========== */
.header {
    background: linear-gradient(135deg, var(--black) 10%, #2a5298 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 0.8rem 0;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-direction: row-reverse;

}

.navbar-brand {
    display: flex;
    flex-direction: inherit;
    flex: 1;
    z-index: 1001;
    margin: 0 3rem 0 0;
}

.brand-link {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.brand-link::before {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.brand-link:hover {
    color: #e3f2fd;
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Brand Logo Styling */
.brand-logo {
    height: 3.75rem;
    width: auto;
    min-width: 40px;
    max-width: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
    opacity: 1;
    visibility: visible;
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}



.brand-text {
    display: inline-block;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .brand-logo {
        height: 3.75rem;
        margin: 0 1rem;
    }
    
    .brand-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 3.75rem;
        margin: 0 1rem;
    }
    
    .brand-link {
        font-size: 1rem;
        gap: 0.3rem;
    }

}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link:active {
    transform: translateY(0);
}

/* Add icons to nav links */
.nav-item:nth-child(1) .nav-link::after {
    font-size: 0.9rem;
}

.nav-item:nth-child(2) .nav-link::after {
    font-size: 0.9rem;
}

.nav-item:nth-child(3) .nav-link::after {
    font-size: 0.9rem;
}

.nav-item:nth-child(4) .nav-link::after {
    font-size: 0.9rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.7rem;
    margin-right: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    color: var(--gray-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.dropdown-link::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-link:hover {
    background: linear-gradient(135deg, var(--light-blue) 0%, #e8f4fd 100%);
    color: var(--primary-blue);
    text-decoration: none;
    transform: translateX(-5px);
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

.dropdown-menu li:last-child .dropdown-link {
    border-bottom: none;
}

/* Add icons to dropdown links */
.dropdown-menu li:nth-child(1) .dropdown-link::after {
    font-size: 0.9rem;
}

.dropdown-menu li:nth-child(2) .dropdown-link::after {
    font-size: 0.9rem;
}

.dropdown-menu li:nth-child(3) .dropdown-link::after {
    font-size: 0.9rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1002;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
}

/* ========== Main Content ========== */
.main-content {
    min-height: calc(100vh - 200px);
    overflow: visible; /* Allow sticky positioning in children */
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(33, 150, 243, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 1;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.button-arrow {
    transition: var(--transition);
}

.hero-button:hover .button-arrow {
    transform: translateX(-5px);
}

/* ========== Quick Info Section ========== */
.quick-info {
    padding: 4rem 0;
    background-color: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    border: 2px solid var(--light-blue);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-title {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.info-description {
    color: var(--gray-dark);
    line-height: 1.6;
}

.highlight-redirect-link{
    color: #2d9fd8;
}


.highlight-redirect-link:hover{
    color: #1e3c72;
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(135deg, #00040b 0%, #2963bd 70%, #00040b 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* ========== Introduction Section ========== */
.intro-section {
    padding: 3rem 0;
}

.intro-box {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-right: 5px solid var(--secondary-blue);
}

.intro-title {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.intro-list {
    list-style: none;
    padding: 0;
}

.intro-list li {
    padding: 0.8rem 0;
    padding-right: 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--secondary-blue);
    font-weight: bold;
    font-size: 1.3rem;
}

/* ========== Day/Time Selection Grid ========== */
.day-selection,
.time-selection {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.day-grid,
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.day-card,
.time-card {
    background: var(--white);
    border: 2px solid var(--light-blue);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.day-card::before,
.time-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.day-card:hover::before,
.time-card:hover::before {
    opacity: 1;
}

.day-card:hover,
.time-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
    color: var(--white);
}

.day-icon,
.time-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.day-name,
.time-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.time-value {
    font-size: 1.1rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.day-arrow,
.time-arrow {
    margin-top: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ========== Error Page ========== */
.error-section {
    padding: 5rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-box {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.error-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.error-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.error-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-column {
    text-align: right;
}

.footer-column-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #2a5298 0%, #1e3c72 100%);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--white);
    padding-right: 0.5rem;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.footer-contact {
    text-align: right;
}

.footer-contact-item {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-email-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-email-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-right: 3px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-copyright {
    margin-bottom: 0.75rem;
    opacity: 0.9;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer Version Styling */
.footer-version {
    opacity: 0.7;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.footer-version .version-number {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin: 0 0.3rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column-title {
        text-align: center;
    }
    
    .footer-column-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s both;
}

/* ========== Responsive Design ========== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .day-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hamburger {
        display: flex;
        margin: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--black) 0%, #2a5298 100%);
        height: 100vh;
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 4rem;
        z-index: 1000;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        right: 0;

    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 0;
        width: 100%;
        justify-content: center;
        border-radius: 0.75rem;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
        box-shadow: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.5rem 1rem 0;
        border-radius: 12px;
        padding: 0.5rem 0;
    }

    .dropdown-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
        transform: none;
    }

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

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

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
    }

    .day-grid,
    .time-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .feature-info-btn {
        width: 100%;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    /* Modal responsive */
    .feature-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .feature-modal-title {
        font-size: 1.5rem;
    }

    .feature-modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
   
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .brand-link {
        font-size: 1.1rem;
    }

    #navMenu{
    display: inline-block;
    }

    .nav-link{
        padding: 1.175rem 1rem;
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }

    .nav-menu {
        top: 65px;
    }

    .dropdown-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    /* Modal mobile */
    .feature-modal-content {
        width: 98%;
        margin: 5% auto;
        padding: 15px;
        max-height: 90vh;
    }

    .feature-modal-title {
        font-size: 1.3rem;
    }

    .feature-modal-body {
        font-size: 0.9rem;
    }

    .feature-modal-body h4 {
        font-size: 1.1rem;
    }

    .feature-modal-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
 
    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .brand-link {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        border-radius: 0.75rem;
    }

    .feature-card {
        padding: 0.8rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.8rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-description {
        font-size: 0.9rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-modal-content {
        margin: 2% auto;
        max-height: 95vh;
    }
}

/* ========== Form Responsive ========== */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
    }
    

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-textarea {
        min-height: 100px;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .form-button {
        width: 100%;
        padding: 0.8rem;
    }

    .form-error {
        font-size: 0.8rem;
    }

    .form-help {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .form-textarea {
        min-height: 80px;
    }

    .form-button {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* ========== Print Styles ========== */
@media print {
    .header,
    .footer,
    .back-link,
    .hero-button,
    .nav-menu,
    .hamburger,
    .feature-modal,
    .form-actions {
        display: none;
    }

    body {
        background: white;
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .hero-section {
        background: white;
        color: black;
        padding: 1rem 0;
    }

    .hero-title,
    .hero-subtitle {
        color: black;
    }

    .feature-card {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

