/*
==============================================
BRUNO'S PERSONAL WEBSITE - MAIN STYLESHEET
==============================================
Author: Bruno Araujo de Gusmao Lobo
Created: 2025
Purpose: Responsive design for personal portfolio website

This CSS file provides:
- Responsive grid layout
- Professional color scheme
- Interactive animations
- Mobile-first design
- Accessibility features

Color Palette:
- Primary Blue: #2c4693
- Dark Background: #1a1a1a  
- Light Text: #f5f5dc (blanchedalmond)
- Accent Blue: #87ceeb (skyblue)
- Black: #000000
==============================================
*/

/* 
GLOBAL BODY STYLING
Ensures consistent background across all pages
Matches the Lab1.html color scheme
*/
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(44, 70, 163, 0.8), rgba(0, 0, 0, 0.9));
    min-height: 100vh;
    font-family: Arial, sans-serif;

/* 
NAVIGATION BAR STYLES
Fixed navigation that stays at top of page
Uses flexbox for responsive layout
*/
.navbar {
    /* Gradient background from blue to dark */
    background: linear-gradient(135deg, #2c4693, #1a1a1a);
    padding: 1rem 2rem;                    /* Top/bottom: 1rem, Left/right: 2rem */
    
    /* Flexbox layout for nav items */
    display: flex;
    justify-content: space-between;        /* Space between brand and links */
    align-items: center;                   /* Vertically center items */
    
    /* Fixed positioning to stay at top when scrolling */
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;                              /* Ensure full width alignment */
    z-index: 1000;                        /* High z-index to stay above other content */
    
    /* Prevent text overflow and ensure proper width */
    box-sizing: border-box;               /* Include padding in width calculation */
    min-height: 60px;                     /* Minimum height for consistency */
    
    /* Subtle shadow for depth */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Brand/Name styling in navigation */
.nav-brand .brand-link {
    color: #f5f5dc;                       /* Light cream color */
    text-decoration: none;                /* Remove underline from link */
    transition: color 0.3s ease;         /* Smooth color transition */
}

.nav-brand .brand-link:hover {
    color: #87ceeb;                       /* Sky blue on hover */
}

.nav-brand h2 {
    color: inherit;                       /* Inherit color from parent link */
    margin: 0;                            /* Remove default margins */
    font-size: 1.5rem;                    /* Relative font size */
}

/* Navigation links container */
.nav-links {
    display: flex;                        /* Horizontal layout */
    gap: 1.5rem;                         /* Reduced space between links */
    align-items: center;                 /* Vertically center links */
    flex-wrap: wrap;                     /* Allow wrapping on small screens */
}

/* Individual navigation link styling */
.nav-links a {
    color: #f5f5dc;                      /* Light cream color */
    text-decoration: none;               /* Remove underline */
    font-weight: 500;                    /* Medium font weight */
    transition: all 0.3s ease;          /* Smooth transitions */
    padding: 0.5rem 0.8rem;             /* Slightly reduced padding */
    border-radius: 5px;                  /* Rounded corners */
    white-space: nowrap;                 /* Prevent text wrapping within links */
    font-size: 0.95rem;                  /* Slightly smaller text */
    min-width: fit-content;              /* Ensure links don't shrink too much */
}

/* Navigation link hover effects */
.nav-links a:hover {
    background-color: rgba(255,255,255,0.1);  /* Subtle white background */
    color: #87ceeb;                           /* Change to sky blue */
}

/* 
GRID LAYOUT AREAS
These define the main sections of the webpage layout.
Grid areas are defined in the .grid-container class.

Layout Structure:
┌─────────────────────────┐
│    S1 (Header)          │
├─────┬─────────────┬─────┤
│ S2  │    S3       │ S4  │
│Menu │   Main      │Right│
└─────┴─────────────┴─────┤
│    S5 (Footer)          │
└─────────────────────────┘
*/

/* S1 - HEADER SECTION (Introduction) */
.S1 {
    grid-area: header;                   /* Assigns to 'header' grid area */
    text-align: center;                  /* Center all text content */
    padding-top: 80px;                   /* Space for fixed navbar above */
}

/* S2 - SIDEBAR/MENU SECTION (Contact & Accessibility) */
.S2 {
    grid-area: menu;                     /* Assigns to 'menu' grid area */
    background: linear-gradient(135deg, #1a1a1a, #2c4693);  /* Dark to blue gradient */
    padding: 2rem;                       /* Equal padding on all sides */
    border-radius: 10px;                 /* Rounded corners */
    margin: 1rem;                        /* Space from grid container edges */
}

/* S3 - MAIN CONTENT SECTION (Journey Timeline) */
.S3 {
    grid-area: main;                     /* Assigns to 'main' grid area */
    text-align: left;                    /* Left-align text for readability */
    padding: 2rem;                       /* Equal padding on all sides */
}

/* S4 - RIGHT SECTION (Skills & Hobbies) */
.S4 {
    grid-area: right;                    /* Assigns to 'right' grid area */
    padding: 2rem;                       /* Equal padding on all sides */
}

/* S5 - FOOTER SECTION */
.S5 {
    grid-area: footer;                   /* Assigns to 'footer' grid area */
    text-align: center;                  /* Center footer content */
    color: black;                        /* Black text for contrast */
    margin-top: 2rem;                    /* Space above footer */
}


.grid-container {
    display: grid;
    grid-template-areas:
        'header header header header'
        'menu main main right'
        'footer footer footer footer';
    background: linear-gradient(135deg, rgba(44, 70, 163, 0.8), rgba(0, 0, 0, 0.9));
    padding: 0;
    color: blanchedalmond;
    min-height: 100vh;
    gap: 1rem;
}

/* Social Links Styling */
.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.linkedin-btn {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.email-btn {
    background: linear-gradient(135deg, #ea4335, #c23321);
    color: white;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}

/* Maintain same appearance for clicked and visited states */
.linkedin-btn:active,
.linkedin-btn:visited,
.linkedin-btn:focus {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.whatsapp-btn:active,
.whatsapp-btn:visited,
.whatsapp-btn:focus {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.email-btn:active,
.email-btn:visited,
.email-btn:focus {
    background: linear-gradient(135deg, #ea4335, #c23321);
    color: white;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Override any default link states for social buttons */
.social-links a:active,
.social-links a:visited {
    text-decoration: none;
}

/* Ensure buttons return to normal state after hover ends */
.linkedin-btn:not(:hover):not(:active),
.whatsapp-btn:not(:hover):not(:active),
.email-btn:not(:hover):not(:active) {
    transform: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Timeline Styles */
.journey-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border-left: 4px solid #87ceeb;
}

.timeline-item h3 {
    color: #87ceeb;
    margin-bottom: 1rem;
}

.timeline-item iframe {
    margin-top: 1rem;
    width: 100%;
    max-width: 500px;
}

/* Skills and Hobbies Section */
.skills-hobbies-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hobbies-card, .skills-card {
    background: rgba(0,0,0,0.4);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(135, 206, 235, 0.3);
}

.hobby-item, .skill-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.hobby-icon, .skill-icon {
    font-size: 2rem;
    color: #87ceeb;
    min-width: 50px;
}

.hobby-content h3, .skill-content h3 {
    color: #87ceeb;
    margin-bottom: 0.5rem;
}

/* Contact Sidebar */
.contact-sidebar {
    background: rgba(0,0,0,0.6);
    padding: 2rem;
    border-radius: 15px;
    height: fit-content;
}

.contact-sidebar h3, .contact-sidebar h4 {
    color: #87ceeb;
    margin-bottom: 1rem;
}

/* Profile Picture Section */
.profile-picture-section {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
    padding: 1rem;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(135, 206, 235, 0.2);
}

.profile-image-container {
    margin-bottom: 1rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid rgba(135, 206, 235, 0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: #87ceeb;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
}

.profile-caption {
    color: #f5f5dc;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.profile-caption small {
    color: #87ceeb;
    font-size: 0.85rem;
    font-weight: 400;
}

.accessibility-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    width: 100%;
}

.accessibility-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: #f5f5dc;
    text-decoration: none;
    border-radius: 8px;
    margin: 0.5rem 0;
    transition: background-color 0.3s ease;
}

.sidebar-link:hover {
    background-color: rgba(135, 206, 235, 0.2);
}

.contact-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #87ceeb;
    width: 20px;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1a1a1a, #2c4693);
    color: #f5f5dc;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h4 {
    color: #87ceeb;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #f5f5dc;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #87ceeb;
}

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

button:hover {
    background-color: blue;
    color: blanchedalmond;
}

a {
    color: inherit;
    text-decoration: none;
}

 a:visited {
    color: lightslategray;
    text-decoration: wavy;
}

/* This part of the code is to keep my header size fixed and determined by the screen size, or viewport*/
h1 {
    font-size: 4vw;
    text-shadow: 1px 1px 5px;
}

/* This part of the code is to keep my header size fixed and determined by the screen size, or viewport*/
h2,
h3 {
    font-size: 2vw;
    text-shadow: 1px 1px 5px;
}

p {
    font-size: 1vw;
    color: blanchedalmond;
    padding: 10px;
}

.noticeR {
    position: fixed;
    top: 0;
    right: 0;
    background-color: darkgreen;
    height: auto;
    border: 0.5vw solid rgba(0, 0, 0, 1);
    font-size: 1vw;
    text-align: center;
}

.noticeL {
    position: fixed;
    top: 10vw;
    left: 0;
    background-color: rgb(0, 255, 0);
    height: auto;
    border: 4px solid rgba(0, 0, 0, 1);
    padding: 5px;


    p {
        color: black;
    }
}

/* Portfolio Page Styles */
.portfolio-container {
    width: 100%;
    margin: 0;
    padding: 80px 2rem 2rem; /* Account for fixed navbar */
    background: transparent; /* Use body background instead */
    min-height: 100vh;
    color: #f5f5dc;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-header h1 {
    font-size: 3rem;
    color: #87ceeb;
    margin-bottom: 1rem;
}

.portfolio-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0,0,0,0.1);
    border-radius: 15px;
    border: 1px solid rgba(135, 206, 235, 0.3);
}

.portfolio-section h2 {
    color: #87ceeb;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.academic-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.program-details ul {
    list-style: none;
    padding: 0;
}

.program-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
}

.program-details li:before {
    content: "▶ ";
    color: #87ceeb;
    font-weight: bold;
}

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

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(135, 206, 235, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: #87ceeb;
    font-size: 1.3rem;
}

.project-status {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-status.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.project-status {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: black;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: linear-gradient(135deg, #6f42c1, #495057);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.skill-category {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
}

.skill-category h3 {
    color: #87ceeb;
    margin-bottom: 1.5rem;
}

.skill-item {
    margin: 1rem 0;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #87ceeb, #4682b4);
    transition: width 0.3s ease;
}

.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #87ceeb, #4682b4);
}

.experience-timeline .timeline-item {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border-left: none;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 15px;
    height: 15px;
    background: #87ceeb;
    border-radius: 50%;
    border: 3px solid #f5f5dc;
}

.timeline-item.current .timeline-marker {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.timeline-period {
    color: #87ceeb;
    font-weight: 600;
    margin: 0.5rem 0;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0,0,0,0.1);
    border-radius: 15px;
    margin: 3rem 0;
}

.cta-section h2 {
    color: #87ceeb;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.coming-soon {
    opacity: 0.8;
    background: rgba(255,255,255,0.02);
}

/* Study Form Page Styles */
.study-page-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 2rem 2rem;
    background: transparent; /* Use body background instead */
    min-height: 100vh;
    color: #f5f5dc;
}

.study-header {
    text-align: center;
    margin-bottom: 3rem;
}

.study-header h1 {
    color: #87ceeb;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Enhanced Form Styles */
fieldset {
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

legend {
    color: #87ceeb;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0 1rem;
}

.form-notice {
    background: rgba(135, 206, 235, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #87ceeb;
    margin: 1rem 0;
}

.form-notice p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.submit-btn, .reset-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.reset-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.submit-btn:hover, .reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive Radio Button and Checkbox Styles */
.section-label {
    display: block;
    color: #87ceeb;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 2px solid rgba(135, 206, 235, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: fit-content;
    flex: 1;
    min-width: 120px;
}

.radio-option:hover, .checkbox-option:hover {
    background: rgba(135, 206, 235, 0.1);
    border-color: rgba(135, 206, 235, 0.4);
    transform: translateY(-1px);
}

.radio-option input[type="radio"], 
.checkbox-option input[type="checkbox"] {
    margin-right: 0.8rem;
    transform: scale(1.2);
    cursor: pointer;
}

.radio-option label, .checkbox-option label {
    color: #f5f5dc;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.radio-option input[type="radio"]:checked + label,
.checkbox-option input[type="checkbox"]:checked + label {
    color: #87ceeb;
    font-weight: 600;
}

.radio-option:has(input:checked), 
.checkbox-option:has(input:checked) {
    background: rgba(135, 206, 235, 0.2);
    border-color: #87ceeb;
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
}

/* Responsive breakpoints for form controls */
@media (max-width: 768px) {
    .radio-group, .checkbox-group {
        flex-direction: column;
    }
    
    .radio-option, .checkbox-option {
        min-width: 100%;
        flex: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .radio-option {
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .checkbox-option {
        flex: 1 1 calc(33.333% - 0.67rem);
    }
}

@media (min-width: 1025px) {
    .radio-option {
        flex: 1 1 auto;
        max-width: 200px;
    }
    
    .checkbox-option {
        flex: 1 1 calc(25% - 0.75rem);
        max-width: 160px;
    }
}

/* Responsive Select Dropdown Styles */
.responsive-select {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem 1.2rem;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(135, 206, 235, 0.2);
    border-radius: 8px;
    color: #f5f5dc;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    appearance: none; /* Remove default browser styling */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2387ceeb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.responsive-select:hover {
    background: rgba(135, 206, 235, 0.1);
    border-color: rgba(135, 206, 235, 0.4);
    transform: translateY(-1px);
}

.responsive-select:focus {
    outline: none;
    border-color: #87ceeb;
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
    background: rgba(135, 206, 235, 0.05);
}

.responsive-select option {
    background: #1a1a1a;
    color: #f5f5dc;
    padding: 0.5rem;
}

.responsive-select option:hover,
.responsive-select option:checked {
    background: rgba(135, 206, 235, 0.2);
    color: #87ceeb;
}

.study-benefits {
    background: rgba(0,0,0,0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(135, 206, 235, 0.3);
    margin-top: 3rem;
}

.study-benefits h2 {
    text-align: center;
    color: #87ceeb;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #87ceeb;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    color: #87ceeb;
    margin-bottom: 0.5rem;
}

/* Form Input Styling */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="month"], 
select, 
textarea {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(135, 206, 235, 0.3);
    color: #f5f5dc;
    padding: 0.5rem;
    border-radius: 5px;
    margin: 0.25rem 0 1rem 0;
    width: 100%;
    max-width: 300px;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="month"]:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #87ceeb;
    box-shadow: 0 0 5px rgba(135, 206, 235, 0.5);
}

label {
    color: #f5f5dc;
    font-weight: 500;
    display: block;
    margin-top: 1rem;
}

textarea {
    max-width: 100%;
    height: 100px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.8rem 1rem;
        min-height: auto;
    }
    
    .nav-brand h2 {
        font-size: 1.3rem;                /* Slightly smaller brand text */
        text-align: center;
    }
    
    .nav-links {
        margin-top: 0.8rem;
        gap: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        font-size: 0.9rem;               /* Smaller text on mobile */
        padding: 0.4rem 0.6rem;          /* Smaller padding */
    }
}

/* Medium screen adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.92rem;
        padding: 0.5rem 0.7rem;
    }
}

/* Mobile responsive layout */
@media (max-width: 480px) {
    .grid-container {
        grid-template-areas:
            'header'
            'main'
            'right'
            'menu'
            'footer';
        grid-template-columns: 1fr;
    }
    
    .S1 {
        padding-top: 120px;
    }
    
    .academic-card {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-showcase {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================================
   ACCESSIBILITY MODE STYLES
   High contrast mode optimized for color blind users and visual impairments
   ============================================================================ */

.accessibility-mode {
    /* Main background - Pure black for maximum contrast */
    background-color: #000000 !important;
    background-image: none !important;
}

.accessibility-mode,
.accessibility-mode * {
    /* All text - Pure white for maximum readability */
    color: #FFFFFF !important;
}

/* Navigation and Interactive Elements */
.accessibility-mode .navbar {
    background-color: #000000 !important;
    border-bottom: 3px solid #FFFFFF !important;
}

.accessibility-mode .nav-brand .brand-link {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.accessibility-mode .nav-brand .brand-link:hover,
.accessibility-mode .nav-brand .brand-link:focus {
    color: #FFFFFF !important;
    outline: 3px solid #FFFFFF !important;
}

.accessibility-mode .nav-links a {
    color: #FFFFFF !important;
    background-color: #333333 !important;
    border: 2px solid #FFFFFF !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem !important;
}

.accessibility-mode .nav-links a:hover,
.accessibility-mode .nav-links a:focus {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    outline: 3px solid #FFFFFF !important;
}

/* Buttons and Links */
.accessibility-mode .social-links a,
.accessibility-mode .sidebar-link,
.accessibility-mode .btn-primary,
.accessibility-mode .btn-secondary,
.accessibility-mode .submit-btn,
.accessibility-mode .reset-btn,
.accessibility-mode .accessibility-btn {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
    font-weight: bold !important;
}

.accessibility-mode .social-links a:hover,
.accessibility-mode .sidebar-link:hover,
.accessibility-mode .btn-primary:hover,
.accessibility-mode .btn-secondary:hover,
.accessibility-mode .submit-btn:hover,
.accessibility-mode .reset-btn:hover,
.accessibility-mode .accessibility-btn:hover {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF !important;
    outline: 3px solid #FFFFFF !important;
}

/* Form Elements */
.accessibility-mode input,
.accessibility-mode select,
.accessibility-mode textarea,
.accessibility-mode .responsive-select {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
    font-weight: bold !important;
}

.accessibility-mode input:focus,
.accessibility-mode select:focus,
.accessibility-mode textarea:focus,
.accessibility-mode .responsive-select:focus {
    outline: 3px solid #FFFFFF !important;
    background-color: #FFFFFF !important;
}

/* Radio buttons and checkboxes */
.accessibility-mode .radio-option,
.accessibility-mode .checkbox-option {
    background-color: #333333 !important;
    border: 3px solid #FFFFFF !important;
}

.accessibility-mode .radio-option:hover,
.accessibility-mode .checkbox-option:hover,
.accessibility-mode .radio-option:has(input:checked),
.accessibility-mode .checkbox-option:has(input:checked) {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

.accessibility-mode .radio-option label,
.accessibility-mode .checkbox-option label {
    color: inherit !important;
    font-weight: bold !important;
}

/* Cards and Sections */
.accessibility-mode .contact-sidebar,
.accessibility-mode .hobbies-card,
.accessibility-mode .skills-card,
.accessibility-mode .project-card,
.accessibility-mode .academic-card,
.accessibility-mode .timeline-item,
.accessibility-mode .study-benefits,
.accessibility-mode fieldset {
    background-color: #000000 !important;
    border: 3px solid #FFFFFF !important;
    color: #FFFFFF !important;
}

/* Profile Picture and Images */
.accessibility-mode .profile-image {
    border: 5px solid #FFFFFF !important;
    filter: contrast(1.2) brightness(1.1) !important;
}

.accessibility-mode .profile-picture-section {
    background-color: #333333 !important;
    border: 3px solid #FFFFFF !important;
}

/* Footer */
.accessibility-mode .main-footer {
    background-color: #000000 !important;
    border-top: 3px solid #FFFFFF !important;
    color: #FFFFFF !important;
}

.accessibility-mode .footer-social a {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.accessibility-mode .footer-social a:hover {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

/* Grid Areas */
.accessibility-mode .S1,
.accessibility-mode .S2,
.accessibility-mode .S3,
.accessibility-mode .S4,
.accessibility-mode .S5 {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

/* Remove all background images and gradients */
.accessibility-mode * {
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* High contrast focus indicators */
.accessibility-mode *:focus {
    outline: 4px solid #FFFFFF !important;
    outline-offset: 2px !important;
}

/* Ensure headings are highly visible */
.accessibility-mode h1,
.accessibility-mode h2,
.accessibility-mode h3,
.accessibility-mode h4,
.accessibility-mode h5,
.accessibility-mode h6 {
    color: #FFFFFF !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

/* Enhanced contrast for icons */
.accessibility-mode i {
    color: inherit !important;
    background-color: transparent !important;
}