/* Modern CSS Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

/* Modern Color Palette - Clean Gray Theme */
:root {
    --primary-color: #6c757d;
    --secondary-color: #495057;
    --accent-color: #28a745;
    --background-light: #ffffff;
    --background-dark: #343a40;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Navigation Styles - Button Menu */
body nav {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #f1f3f4 0%, #d1d5db 50%, #bdc3c7 100%) !important;
    background-color: #d1d5db !important;
    color: var(--text-primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
}

.brand {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0.5rem 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    transition: all 0.3s ease;
}

.brand:hover {
    color: var(--secondary-color);
    transform: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #ffffff !important;
    background-color: #ffffff !important;
    min-width: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.mobile-menu-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-brand {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    background: var(--background-light);
    padding: 4rem 0;
    min-height: 60vh;
    max-width: 90%;
    margin: 0 auto;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Featured Sections */
.featured-sections {
    margin-bottom: 4rem;
}

.featured-sections h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    position: relative;
}

.featured-sections h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .sections-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Tablet: 3 columns with compact spacing */
@media (min-width: 700px) and (max-width: 1023px) {
    .sections-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet-specific adjustments for featured sections */
@media (min-width: 700px) and (max-width: 1023px) {
    .section-card {
        padding: 2rem 1.5rem;
        position: relative;
        min-height: 320px;
        display: flex;
        flex-direction: column;
    }
    
    .section-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .section-card p {
        font-size: 0.9rem;
        margin-bottom: 0;
        flex-grow: 1;
        padding-bottom: 4rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon span {
        font-size: 2rem;
    }
    
    .card-link {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 120px;
        max-width: 200px;
        text-align: center;
    }
}

.section-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    text-align: center;
    position: relative;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-medium);
}

.card-icon span {
    font-size: 2.5rem;
    color: white;
}

/* Special styling for ham radio icon */
.card-icon .ham-radio-icon {
    font-size: 2rem;
    color: white;
    background: var(--accent-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-icon .ham-radio-icon::before {
    content: '⚡';
    font-size: 1.5rem;
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: var(--background-light);
}

.card-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* About Section */
.about-section {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--border-color);
    margin: 0 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-element {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-medium);
}

.visual-element span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Footer */
footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: auto;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
        border-top: 2px solid var(--border-color);
        gap: 0.5rem;
    }
    
    nav.mobile-open .nav-links {
        display: flex;
    }
    
    .nav-links a {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .about-section {
        padding: 2rem 1rem;
        margin: 0;
    }
    
    .main-content {
        max-width: 95%;
    }
    
    footer {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .featured-sections h2 {
        font-size: 2rem;
    }
    
    .section-card {
        padding: 2rem 1.5rem;
    }
    
    .card-link {
        width: auto;
        min-width: 120px;
        max-width: 200px;
    }
    
    .main-content {
        max-width: 100%;
        border-left: none;
        border-right: none;
    }
    
    footer {
        max-width: 100%;
        border-left: none;
        border-right: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-card,
.about-section {
    animation: fadeInUp 0.6s ease-out;
}

.section-card:nth-child(2) {
    animation-delay: 0.1s;
}

.section-card:nth-child(3) {
    animation-delay: 0.2s;
}