/*
 * Stay Safe Online - Master Stylesheet
 * Purpose: Single external CSS file for all website pages
 * Author: Sandaru A. B. N
 * Student ID: 10677567
 * Date: October 2025
 * 
 * ============================================
 * W3C CSS VALIDATION - PASSED ✓
 * ============================================
 * This stylesheet validates as CSS Level 3 + SVG
 * Validated: October 28, 2025
 * Validator: https://jigsaw.w3.org/css-validator/
 * 
 * To display validation badge, add this to HTML:
 * <p>
 *     <a href="https://jigsaw.w3.org/css-validator/check/referer">
 *         <img style="border:0;width:88px;height:31px"
 *             src="https://jigsaw.w3.org/css-validator/images/vcss"
 *             alt="Valid CSS!">
 *     </a>
 * </p>
 * ============================================
 * 
 * This stylesheet provides consistent styling across all 5 pages:
 * - index.html (Home)
 * - learn.html (Learn About Cyberbullying)
 * - help.html (Get Help)
 * - safety.html (Stay Safe)
 * - resources.html (Resources)
 * 
 * Design Focus: User-friendly, calming, supportive environment for victims
 */

/* ============================================
   GLOBAL RESET AND BASE STYLES
   ============================================
   Purpose: Remove browser defaults for consistency
   Learning: Universal selector (*) applies to all elements
*/
* {
    margin: 0;              /* Remove default margins from all elements */
    padding: 0;             /* Remove default padding from all elements */
    box-sizing: border-box; /* Include padding/border in element width/height */
}

/* 
 * Body Styling
 * Purpose: Set site-wide typography and colors
 * Design Decision: Soft colors and readable fonts create calming atmosphere for victims
 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Clean, modern font */
    line-height: 1.6;          /* Spacing between lines improves readability */
    color: #333;               /* Dark grey text (easier on eyes than pure black) */
    background-color: #f5f5f5; /* Light grey background reduces eye strain */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on Webkit browsers */
    -moz-osx-font-smoothing: grayscale;  /* Smoother fonts on Firefox Mac */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile tap */
    touch-action: manipulation; /* Improves touch responsiveness */
}

/* 
 * Image Responsive Styling
 * Purpose: Ensure all images scale properly on any device
 */
img {
    max-width: 100%;          /* Never exceed container width */
    height: auto;             /* Maintain aspect ratio */
    display: block;           /* Remove extra space below images */
}

/* ============================================
   HEADER AND NAVIGATION
   ============================================
   Purpose: Consistent header across all pages with easy navigation
   Design: Sticky header stays visible while scrolling for easy access to help
*/
header {
    /* Gradient background creates professional, welcoming appearance */
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1.5rem 0;         /* Vertical padding for breathing room */
    position: sticky;          /* Header sticks to top when scrolling */
    top: 0;                    /* Position at very top */
    z-index: 1000;            /* Ensures header stays above other content */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle shadow adds depth */
}

/* 
 * Header Content Container
 * Purpose: Center and organize header elements
 * Learning: Flexbox allows flexible horizontal layout
 */
.header-content {
    max-width: 1200px;        /* Constrains width on large screens */
    margin: 0 auto;           /* Centers container horizontally */
    padding: 0 20px;          /* Side padding prevents edge touching */
    display: flex;            /* Enables flexbox layout */
    justify-content: space-between; /* Pushes logo left, nav right */
    align-items: center;      /* Vertically centers items */
    flex-wrap: wrap;          /* Allows wrapping on small screens */
}

/* Logo Section Styling */
.logo {
    cursor: pointer;          /* Shows it's clickable */
}

.logo a {
    text-decoration: none;    /* Remove underline from link */
    color: white;            /* Keep white text color */
    display: block;          /* Makes entire logo area clickable */
}

.logo a:hover,
.logo a:focus {
    opacity: 0.9;            /* Slight fade on hover/focus */
    transform: translateY(-2px); /* Subtle lift effect */
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 1.8rem;        /* Large, readable site title */
    font-weight: 700;         /* Bold weight for emphasis */
    margin-bottom: 0.3rem;
}

.logo p {
    font-size: 0.95rem;       /* Smaller tagline text */
    opacity: 0.9;             /* Slightly transparent for visual hierarchy */
}

/* 
 * Main Navigation Menu
 * Purpose: Easy access to all pages from anywhere on site
 * Design: Horizontal layout on desktop, stacks on mobile
 */
nav ul {
    list-style: none;         /* Remove bullet points */
    display: flex;            /* Horizontal layout */
    gap: 1rem;                /* Space between nav items */
    flex-wrap: wrap;          /* Wrap on smaller screens */
}

/* Navigation Link Styling */
nav a {
    color: white;
    text-decoration: none;    /* Remove underlines */
    font-weight: 500;         /* Medium-bold weight */
    padding: 0.7rem 1.2rem;   /* Generous padding for easy clicking */
    border-radius: 5px;       /* Rounded corners */
    transition: all 0.3s ease; /* Smooth hover transitions */
    display: block;
}

/* 
 * Navigation Hover Effect
 * Purpose: Visual feedback shows which link user is hovering over
 * Design: Orange accent color signals importance (help resources)
 */
nav a:hover {
    background-color: rgba(255,255,255,0.15); /* Semi-transparent white background */
    color: #ff6b35;                           /* Orange accent color */
    transform: translateY(-2px);              /* Slight lift effect */
}

/* 
 * Active Page Indicator
 * Purpose: Shows user which page they're currently on
 * Class should be added to current page's nav link
 */
nav a.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* ============================================
   HERO SECTIONS
   ============================================
   Purpose: Eye-catching introduction on each page
   Design: Large, welcoming sections with supportive messaging
*/
.hero {
    /* Purple gradient creates warm, supportive feeling */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 20px;       /* Generous padding for visual impact */
    text-align: center;
    min-height: 400px;        /* Ensures adequate visual presence */
    display: flex;
    align-items: center;      /* Vertically centers content */
    justify-content: center;
}

.hero-content {
    max-width: 800px;         /* Constrains text width for readability */
    margin: 0 auto;
}

/* Hero Heading Styling */
.hero h2 {
    font-size: 2.8rem;        /* Large, impactful heading */
    margin-bottom: 1.5rem;
    line-height: 1.2;         /* Tighter line spacing for headings */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

/* Hero Paragraph Text */
.hero p {
    font-size: 1.3rem;        /* Large, easy-to-read body text */
    margin-bottom: 2rem;
    opacity: 0.95;            /* Slightly transparent for visual hierarchy */
    line-height: 1.6;
}

/* 
 * Call-to-Action Button
 * Purpose: Primary action button (especially for getting help)
 * Design: Orange color signals urgency and importance
 */
.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;   /* Large, easy to click */
    background-color: #ff6b35; /* Vibrant orange for attention */
    color: white;
    text-decoration: none;
    border-radius: 50px;      /* Fully rounded for friendly appearance */
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4); /* Colored shadow adds depth */
}

/* CTA Button Hover Effect */
.cta-button:hover {
    background-color: #ff8555;     /* Lighter orange on hover */
    transform: translateY(-3px);   /* Lifts button */
    box-shadow: 0 6px 20px rgba(255,107,53,0.6); /* Larger shadow on hover */
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================
   Purpose: Consistent spacing and width for all page content
*/
.container {
    max-width: 1200px;        /* Prevents content from being too wide */
    margin: 0 auto;           /* Centers container */
    padding: 4rem 20px;       /* Vertical and horizontal spacing */
}

/* Section Spacing */
section {
    margin-bottom: 4rem;      /* Space between major sections */
}

/* 
 * Section Headers
 * Purpose: Consistent styling for section titles
 * Design: Centered, large headings with descriptive subtitles
 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;           /* Dark blue-grey for readability */
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;              /* Medium grey for subtitles */
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   CARD LAYOUTS
   ============================================
   Purpose: Flexible card-based layout for content organization
   Learning: CSS Grid creates responsive columns automatically
*/

/* 
 * Card Grid Container
 * Purpose: Responsive grid that adapts to screen size
 * Learning: auto-fit creates columns automatically based on minmax values
 */
.card-grid {
    display: grid;
    /* Creates columns: minimum 300px, maximum equal width (1fr) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;                /* Space between cards */
}

/* 
 * Individual Card Component
 * Purpose: Reusable card design for various content types
 * Design: White cards on grey background create visual separation
 */
.card {
    background: white;
    padding: 2.5rem;          /* Generous internal spacing */
    border-radius: 10px;      /* Rounded corners for friendly feel */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Shadow creates depth */
    transition: all 0.3s ease; /* Smooth hover animation */
}

/* Card Hover Effect - Creates engaging interaction */
.card:hover {
    transform: translateY(-5px);             /* Lifts card up */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Deeper shadow on hover */
}

/* Card Icon Placeholder */
.card-icon {
    font-size: 3.5rem;        /* Large emoji/icon size */
    margin-bottom: 1rem;
    text-align: center;
}

/* Card Image Placeholder */
.card img {
    width: 100%;              /* Full width of card */
    height: 200px;            /* Fixed height */
    object-fit: cover;        /* Crops image to fit */
    border-radius: 8px;       /* Slightly rounded corners */
    margin-bottom: 1.5rem;
}

/* Card Headings */
.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* Card Text Content */
.card p {
    color: #666;
    line-height: 1.8;         /* Extra spacing improves readability */
    margin-bottom: 1rem;
}

/* Card Lists */
.card ul {
    margin-left: 1.5rem;      /* Indent from left edge */
    color: #666;
}

.card ul li {
    margin-bottom: 0.8rem;    /* Space between list items */
    line-height: 1.6;
}

/* ============================================
   EMERGENCY/ALERT SECTIONS
   ============================================
   Purpose: High-visibility sections for urgent information
   Design: Red gradient signals urgency
*/
.emergency-section {
    /* Red gradient for urgency and immediate attention */
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4rem 20px;
    margin: 3rem 0;
    border-radius: 10px;
    text-align: center;
}

.emergency-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.emergency-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 
 * Emergency Contact Cards
 * Purpose: Display urgent contact information prominently
 */
.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 
 * Contact Card with Glass Effect
 * Purpose: Semi-transparent cards on colored background
 * Learning: backdrop-filter creates modern glassmorphism effect
 */
.contact-card {
    background-color: rgba(255,255,255,0.15); /* Semi-transparent white */
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);  /* Blurs background behind card */
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Prominent Phone Number Display */
.phone-number {
    font-size: 2rem;          /* Very large for easy reading */
    font-weight: 700;         /* Bold for emphasis */
    margin: 1rem 0;
    letter-spacing: 1px;      /* Slight spacing improves readability */
}

/* ============================================
   FORM STYLES
   ============================================
   Purpose: User-friendly, accessible form design
   Design: Clear labels, generous spacing, visual feedback
*/
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

/* Form Group Container - Groups label and input together */
.form-group {
    margin-bottom: 2rem;      /* Generous spacing between fields */
}

/* 
 * Form Labels
 * Purpose: Clear identification of form fields
 * Design: Bold labels with good contrast for accessibility
 */
.form-group label {
    display: block;           /* Makes label take full width */
    margin-bottom: 0.7rem;
    color: #2c3e50;
    font-weight: 600;         /* Semi-bold for clarity */
    font-size: 1.05rem;
}

/* 
 * Form Input Fields
 * Purpose: Text inputs, textareas, and select dropdowns
 * Design: Large, easy to click/tap on all devices
 */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;              /* Full width for easy interaction */
    padding: 1rem;            /* Generous padding for comfort */
    border: 2px solid #ddd;   /* Light grey border */
    border-radius: 8px;       /* Rounded corners */
    font-size: 1rem;
    font-family: inherit;     /* Matches body font */
    transition: border-color 0.3s ease;
}

/* 
 * Input Focus State
 * Purpose: Visual feedback when user is typing
 * Design: Blue border matches overall color scheme
 */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;            /* Remove default browser outline */
    border-color: #3498db;    /* Blue border when focused */
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1); /* Subtle glow */
}

/* Textarea Specific Styles */
.form-group textarea {
    min-height: 150px;        /* Adequate height for descriptions */
    resize: vertical;         /* Allow vertical resizing only */
}

/* 
 * Submit Button
 * Purpose: Primary action button for forms
 * Design: Large, prominent button with hover effects
 */
.submit-button {
    background-color: #3498db;
    color: white;
    padding: 1.2rem 3rem;
    border: none;             /* Remove default button border */
    border-radius: 50px;      /* Fully rounded */
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;          /* Hand cursor indicates clickability */
    transition: all 0.3s ease;
    width: 100%;              /* Full width for mobile friendliness */
}

/* Submit Button Hover Effect */
.submit-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.4);
}

/* ============================================
   TIPS AND ADVICE CARDS
   ============================================
   Purpose: Display practical advice in scannable format
*/
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 
 * Tip Card with Accent Border
 * Purpose: Quick, scannable advice cards
 * Design: Colored left border provides visual interest
 */
.tip-card {
    background: white;
    padding: 2rem;
    border-left: 5px solid #3498db; /* Blue accent border */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateX(5px); /* Slides slightly right on hover */
}

.tip-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.tip-card p {
    color: #666;
    line-height: 1.7;
}

/* ============================================
   RESOURCE LINKS
   ============================================
   Purpose: Clickable cards linking to external resources
*/
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* 
 * Resource Link Card
 * Purpose: Entire card is clickable link to resource
 * Design: Hover effect provides clear feedback
 */
.resource-link {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-decoration: none;    /* Remove link underline */
    color: #2c3e50;
    transition: all 0.3s ease;
    display: block;           /* Makes entire card clickable */
}

/* 
 * Resource Link Hover Effect
 * Purpose: Dramatic transformation on hover
 * Design: Changes to blue gradient with white text
 */
.resource-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.resource-link h4 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.resource-link p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================
   INFO BANNERS
   ============================================
   Purpose: Highlight important information
   Design: Orange gradient draws attention without alarm
*/
.info-banner {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 2.5rem;
    border-radius: 10px;
    margin: 3rem 0;
    text-align: center;
}

.info-banner h3 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.info-banner p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ============================================
   STATISTICS DISPLAY
   ============================================
   Purpose: Show impactful statistics about cyberbullying
*/
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Individual Stat Card */
.stat-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
}

/* Large Statistics Number */
.stat-number {
    font-size: 3.5rem;        /* Very large for impact */
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Statistics Label */
.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.4;
}

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================
   Purpose: Styled placeholders for future images
*/
.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    margin: 2rem 0;
    border: 2px dashed #ccc;
}

/* Hero Image Placeholder */
.hero-image {
    max-width: 500px;
    margin: 2rem auto;
}

/* Content Image Placeholder */
.content-image {
    margin: 2rem 0;
}

/* ============================================
   FOOTER
   ============================================
   Purpose: Consistent footer across all pages
   Design: Dark background with organized information
*/
footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 20px 2rem;
    margin-top: 4rem;
}

/* Footer Content Grid */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Footer Section Headings */
.footer-section h3 {
    margin-bottom: 1.2rem;
    color: #ff6b35;           /* Orange accent matches CTAs */
    font-size: 1.3rem;
}

/* Footer Lists */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

/* Footer Links */
.footer-section a {
    color: #bdc3c7;           /* Light grey for readability */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b35;           /* Orange on hover */
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.7;
}

/* 
 * Footer Bottom Section
 * Purpose: Copyright and final information
 */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================
   Purpose: Adapt layout for different screen sizes
   Learning: Mobile-first approach ensures accessibility
*/

/* 
 * Tablet and Mobile Devices (768px and below)
 * Purpose: Adjust layout for smaller screens
 */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;    /* Smaller on mobile */
    }

    .logo p {
        font-size: 0.85rem;
    }

    /* Navigation stacks vertically on mobile */
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    nav a {
        padding: 1rem;
        text-align: center;
        width: 100%;          /* Full width buttons on mobile */
    }

    /* Hero section adjustments */
    .hero {
        padding: 3rem 20px;
        min-height: 300px;
    }

    .hero h2 {
        font-size: 2rem;      /* Smaller heading on mobile */
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* CTA Button more mobile-friendly */
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;          /* Full width on mobile */
        max-width: 300px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.05rem;
    }

    /* Container padding */
    .container {
        padding: 3rem 15px;
    }

    /* All grids become single column on mobile */
    .card-grid,
    .stats-grid,
    .emergency-contacts,
    .tips-grid,
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;          /* Slightly smaller gap on mobile */
    }

    /* Cards more compact on mobile */
    .card {
        padding: 2rem 1.5rem;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .card-icon {
        font-size: 3rem;
    }

    /* Form adjustments */
    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;      /* Prevents zoom on iOS */
    }

    /* Stat numbers slightly smaller */
    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Emergency section more compact */
    .emergency-section {
        padding: 3rem 15px;
    }

    .emergency-section h2 {
        font-size: 1.8rem;
    }

    .phone-number {
        font-size: 1.8rem;
    }

    /* Contact cards */
    .contact-card {
        padding: 1.5rem;
    }

    /* Tips grid */
    .tip-card {
        padding: 1.5rem;
    }

    .tip-card h4 {
        font-size: 1.15rem;
    }

    /* Resource links */
    .resource-link {
        padding: 1.5rem;
    }

    /* Footer adjustments */
    .footer-content {
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    /* Image placeholders smaller on mobile */
    .image-placeholder {
        height: 200px;
        font-size: 1rem;
    }

    /* Hero images responsive */
    .hero-image img {
        max-width: 100%;
    }
}

/* 
 * Small Mobile Devices (480px and below)
 * Purpose: Further adjustments for very small screens
 */
@media (max-width: 480px) {
    /* Body text more readable */
    body {
        font-size: 15px;
    }

    /* Header even more compact */
    header {
        padding: 1rem 0;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo p {
        font-size: 0.8rem;
    }

    /* Navigation buttons smaller */
    nav a {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    /* Even smaller hero text */
    .hero {
        padding: 2rem 15px;
        min-height: 250px;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Smaller CTA button */
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }

    /* Reduced card padding */
    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    /* Smaller section headers */
    .section-header h2 {
        font-size: 1.7rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Adjust phone number size */
    .phone-number {
        font-size: 1.6rem;
    }

    /* Emergency section */
    .emergency-section {
        padding: 2rem 15px;
    }

    .emergency-section h2 {
        font-size: 1.6rem;
    }

    .emergency-section p {
        font-size: 1rem;
    }

    /* Contact cards more compact */
    .contact-card {
        padding: 1.2rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }

    /* Form elements */
    .form-container {
        padding: 1.5rem 1rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
        font-size: 16px;      /* Prevents iOS zoom */
    }

    .submit-button {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

    /* Stats smaller */
    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    /* Tips and resource cards */
    .tip-card,
    .resource-link {
        padding: 1.2rem;
    }

    .tip-card h4 {
        font-size: 1.1rem;
    }

    /* Info banners */
    .info-banner {
        padding: 2rem 1.5rem;
    }

    .info-banner h3 {
        font-size: 1.5rem;
    }

    .info-banner p {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        padding: 0 10px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }

    /* Tables and lists more readable */
    ul, ol {
        padding-left: 1.2rem;
    }

    li {
        margin-bottom: 0.6rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================
   Purpose: Optimize pages for printing
   Learning: @media print targets printer output
*/
@media print {
    /* Hide non-essential elements when printing */
    header,
    nav,
    footer,
    .cta-button {
        display: none;
    }

    /* Adjust colors for printing */
    body {
        background: white;
        color: black;
    }

    /* Remove shadows and colors */
    .card,
    .tip-card,
    .resource-link {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/*
 * END OF STYLESHEET
 * 
 * Summary of CSS Concepts Used:
 * 1. Flexbox - Header and navigation layouts
 * 2. CSS Grid - Responsive card and content layouts
 * 3. Linear Gradients - Visual appeal and emotional design
 * 4. Transitions - Smooth hover effects and interactions
 * 5. Media Queries - Responsive design for all devices
 * 6. Pseudo-classes (:hover, :focus) - Interactive feedback
 * 7. Box-shadow - Depth and elevation effects
 * 8. Position Sticky - Fixed header functionality
 * 9. Backdrop-filter - Modern glassmorphism effects
 * 10. Transform - Micro-interactions and animations
 * 
 * Design Principles Applied:
 * - User-friendly: Large text, generous spacing, clear navigation
 * - Accessible: Good color contrast, readable fonts, clear labels
 * - Supportive: Calming colors, welcoming messages, easy access to help
 * - Responsive: Works perfectly on all devices from mobile to desktop
 * - Consistent: Same styling across all 5 pages
 */
