/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: all 0.3s ease-in-out;
}


/* Root Colors */
:root {
    --blue-light: #35b2e4;  /* Light Blue */
    --blue-mid: #157ab6;    /* Medium Blue */
    --blue-dark: #0062a9;   /* Dark Blue */
    --blue-logo: #00347e;   /* Logo Blue */
    --black: #000000;       /* Black */
    --white: #ffffff;       /* White */
    --gray-light: #f5f5f5;  /* Light Gray */
    --gray-dark: #333;      /* Dark Gray */
    --dark-gray: #222;      /* Darker Gray for Dark Mode */
    --underglow-light: rgba(53, 178, 228, 0.4); /* Light Underglow */
    --underglow-dark: rgba(255, 255, 255, 0.2); /* Dark Underglow */
}

/* Global Font Settings */
body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    background-color: var(--black);
    color: var(--white);
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.dark-mode .main-header {
    background-color: var(--black); /* Changed to black */
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}


/* Logo */
.logo {
    width: 150px;
    transition: opacity 0.3s ease-in-out;
}

body.dark-mode .logo {
    content: url('peerIT-dark.png'); /* Change logo for dark mode */
}
body.dark-mode .logo1 {
    content: url('peerIT-dark.png'); /* Change logo for dark mode */
}

/* Navbar Styling */
.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--blue-light);
}

body.dark-mode .main-nav ul li a {
    color: var(--white);
}

body.dark-mode .main-nav ul li a:hover {
    color: var(--blue-light);
}

/* Burger Menu Button for Mobile */
.burger-menu {
    display: none;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--blue-dark);
}

body.dark-mode .burger-menu {
    color: var(--white);
}
/* Dropdown Menu Styling */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0; /* Odstup medzi okrajmi */
    margin: 0;
    z-index: 1000;
    min-width: 300px; /* Rozšírime menu pre dlhé texty */
    white-space: nowrap; /* Zamedzí zalomeniu textu */
}

.main-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: var(--blue-dark);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav .dropdown-menu li a:hover {
    background-color: var(--gray-light);
}


/* Dark Mode Support */
body.dark-mode .main-nav .dropdown .dropdown-menu {
    background-color: var(--black);
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .main-nav .dropdown-menu li a {
    color: var(--white);
    background-color: var(--gray-dark);
}

body.dark-mode .main-nav .dropdown-menu li a:hover {
    background-color: var(--blue-dark);
}

/* Mobile Menu Styling */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(51, 51, 51, 0.9);
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 0;
    }

    .main-nav ul.show {
        display: flex;
    }

    .main-nav ul li a {
        padding: 15px 0;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Center logo on mobile */
    .logo  {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Hero Section */
.hero {
    background: var(--blue-mid);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px var(--underglow-light);
    border-radius: 12px;
    margin-bottom: 50px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInHero 2.5s ease-in-out forwards;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

body.dark-mode .hero {
    background: var(--blue-dark);
    box-shadow: 0 0 20px var(--underglow-dark);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    background-color: var(--blue-mid);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--blue-light);
    transform: translateY(-3px);
}

body.dark-mode .cta-button {
    background-color: var(--blue-light);
}

body.dark-mode .cta-button:hover {
    background-color: var(--blue-mid);
}

/* Contact Form Section */
.contact-form-section {
    padding: 40px 20px;
    background-color: var(--gray-light); /* Light background */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto; /* Center the section */
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--gray-dark); /* Text color */
}

.field input, 
.field textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--blue-mid); /* Border color */
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.field input:focus, 
.field textarea:focus {
    border-color: var(--blue-dark); /* Darker color on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5); /* Highlight */
}

.field textarea {
    resize: vertical; /* Allow vertical resizing only */
}

#button {
    background-color: var(--blue-mid); /* Blue background for button */
    color: var(--white);
    cursor: pointer;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1rem;
    width: 100%; /* Button takes full width */
}

#button:hover {
    background-color: var(--blue-dark); /* Darker color on hover */
    transform: translateY(-2px); /* Move up effect */
}
/* Dark Mode for Checkbox */
body.dark-mode label {
    color: var(--white); /* Change text color to white for dark mode */
}

body.dark-mode input[type="checkbox"] {
    background-color: var(--black); /* Dark background for checkbox */
    border: 2px solid var(--blue-light); /* Lighter border color */
}

body.dark-mode input[type="checkbox"]:checked {
    background-color: var(--blue-mid); /* Keep background for checked state */
    border-color: var(--blue-light); /* Light border for checked state */
}

body.dark-mode input[type="checkbox"]:hover {
    border-color: var(--blue-dark); /* Change border color on hover */
}

body.dark-mode input[type="checkbox"]:focus {
    box-shadow: 0 0 5px var(--blue-mid); /* Highlight focus in dark mode */
}


/* Container for contact details */
/* Main container styles */
.container1 {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Contact details - Flexbox centering */
.contact-details {
    display: flex;                   /* Enable flexbox for layout */
    flex-direction: column;          /* Stack logo and text vertically */
    align-items: center;             /* Horizontally center logo and text */
    justify-content: center;         /* Vertically center logo and text */
    height: 100%;                    /* Take up the full height of the parent container */
    text-align: center;              /* Ensure text is centered */
    box-sizing: border-box;          /* Ensure padding is included */
    padding: 20px;                   /* Optional padding */
}

.logo1 {
    width: 150px;                    /* Default logo size */
    margin-bottom: 20px;             /* Space between logo and text */
    transition: none;                /* No hover effect */
    align-items: center;
}

/* ===============================
   Screens larger than 1600px (large desktops)
   =============================== */
@media (min-width: 1600px) {
    .logo1 {
        width: 180px;                /* Slightly larger logo for large screens */
        align-items: center;
    }

    .contact-info {
        font-size: 1.5rem;           /* Larger text for better readability */
        align-items: center;
    }
}

/* ===============================
   Screens between 1200px and 1600px (standard desktops)
   =============================== */
@media (min-width: 1200px) and (max-width: 1599px) {
    .logo1{
        width: 150px;                /* Standard logo size */
        align-items: center;
    }

    .contact-info {
        font-size: 1.25rem;          /* Adjusted font size for desktop */
        align-items: center;
    }
}

/* ===============================
   Screens between 992px and 1199px (small desktops and large tablets)
   =============================== */
@media (min-width: 992px) and (max-width: 1199px) {
    .logo1 {
        width: 140px;                /* Slightly smaller logo for smaller screens */
        align-items: center;
    }

    .contact-info {
        font-size: 1.15rem;          /* Adjusted font size for smaller desktops */
        align-items: center;
    }
}

/* ===============================
   Screens between 768px and 991px (tablets)
   =============================== */
@media (min-width: 768px) and (max-width: 991px) {
    .logo1 {
        width: 130px;                /* Reduced logo size for tablet view */
        align-items: center;
    }

    .contact-info {
        font-size: 1.1rem;           /* Adjusted font size for tablets */
        align-items: center;
    }
}

/* ===============================
   Screens between 576px and 767px (large mobile screens, phablets)
   =============================== */
@media (min-width: 576px) and (max-width: 767px) {
    .logo1 {
        width: 120px;                /* Smaller logo size for large mobile screens */
        align-items: center;
    }

    .contact-info {
        font-size: 1rem;             /* Adjusted text size for mobile */
        margin: 5px 0;               /* Space between text elements */
        align-items: center;
    }
}

/* ===============================
   Screens smaller than 576px (small mobile phones)
   =============================== */
@media (max-width: 575px) {
    .logo1 {
        width: 100px;                /* Smaller logo for small mobile devices */
        align-items: center;
    }

    .contact-info {
        font-size: 0.9rem;           /* Smaller font size for small mobile devices */
        margin: 5px 0;               /* Keep space between text elements minimal */
        align-items: center;
    }
}



/* Dark Mode Responsive Styles */
body.dark-mode .container1 {
    background-color: var(--black); /* Change container to black in dark mode */
}

body.dark-mode .contact-info {
    color: var(--white); /* White text for contact info */
}

/* Footer */
footer {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    font-size: 1rem;
}

body.dark-mode footer {
    background-color: var(--black);
}

/* Dark Mode Settings */
body.dark-mode {
    background-color: var(--black);
    color: var(--white);
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
    color: var(--blue-light);
}

body.dark-mode p {
    color: var(--gray-light); /* Change to white for better visibility */
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

/* Section for responsiveness adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Add more padding and adjust font sizes for mobile */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .hero h1 {
        font-size: 1.5rem; /* Even smaller heading for extra small screens */
    }

    .cta-button {
        padding: 10px 15px; /* Smaller button for extra small screens */
    }
}

/* Extra lines for layout expansion and detailed CSS development */
.main-header {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Styling for the home icon in navbar */
.main-nav ul li a i {
    font-size: 1.2rem; /* Icon size */
    color: var(--blue-dark); /* Icon color */
    transition: color 0.3s ease;
}

.main-nav ul li a i:hover {
    color: var(--blue-light); /* Change color on hover */
}

body.dark-mode .main-nav ul li a i {
    color: var(--white); /* Icon color in dark mode */
}

body.dark-mode .main-nav ul li a i:hover {
    color: var(--blue-light); /* Change color in dark mode on hover */
}

/* Theme Toggle Button */
.theme-toggle {
    background-color: var(--blue-light);
    border: none;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    position: fixed;
    bottom: 20px; /* Fixed to bottom */
    right: 20px; /* Fixed to right */
    z-index: 1000;
}

body.dark-mode .theme-toggle {
    background-color: var(--blue-mid);
}

.theme-toggle i {
    color: var(--black); /* Icon color */
}

body.dark-mode .theme-toggle i {
    color: var(--white); /* Icon color in dark mode */
}

.theme-toggle:hover {
    background-color: var(--blue-dark);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Adjusting navbar to fit within the container on mobile */
@media (max-width: 768px) {
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px; /* Add horizontal padding inside the container */
        position: relative;
    }

    .logo {
        position: relative;
        left: 50%;
        transform: translateX(-50%); /* Center the logo */
        max-width: 120px; /* Adjust size if needed */
    }

    .burger-menu {
        position: absolute;
        right: 20px;
        top: 20px; /* Align burger menu within the container */
    }

    .main-header {
        padding: 30px 0; /* Adjust top and bottom padding for more space */
    }

    .hero {
        margin-top: 80px; /* Add margin to push down the content from the navbar */
        padding-top: 60px; /* Further padding to ensure content doesn't collide */
    }
}

/* Hide the menu by default on mobile */
@media (max-width: 768px) {
    .main-nav ul {
        display: none; /* Hidden initially on mobile */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* Dark background for mobile menu */
        justify-content: center;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        z-index: 1000;
    }

    /* When 'show' class is added, display the menu */
    .main-nav ul.show {
        display: flex; /* Show the menu when class is toggled */
    }

    /* Burger Menu button styling */
    .burger-menu {
        display: block; /* Show the burger icon only on mobile */
        cursor: pointer;
        font-size: 24px;
        background: none;
        border: none;
        color: var(--blue-dark); /* Adjust color as needed */
        z-index: 1001; /* Keep the button above everything */
    }
}

/* On larger screens (PC view), always display the menu */
@media (min-width: 769px) {
    .main-nav ul {
        display: flex; /* Ensure the menu is always visible on larger screens */
        flex-direction: row; /* Horizontal layout for desktop */
        position: static; /* Static positioning for desktop */
        background-color: transparent;
        justify-content: flex-end;
    }

    .burger-menu {
        display: none; /* Hide burger icon on desktop */
    }
}
.email-link {
    text-decoration: none;        /* Remove underline */
    color: var(--blue-mid);      /* Set text color */
    font-weight: bold;           /* Make the text bold */
    padding: 5px 10px;           /* Add padding for clickable area */
    border: 2px solid var(--blue-mid); /* Optional: add a border */
    border-radius: 5px;          /* Optional: add rounded corners */
    transition: background-color 0.3s, color 0.3s, transform 0.3s; /* Smooth transitions */
    display: inline-flex;         /* Use inline flexbox for icon alignment */
    align-items: center;          /* Center icon and text vertically */
}

.email-link i {
    margin-right: 5px;           /* Space between icon and text */
}

.email-link:hover {
    background-color: var(--blue-light); /* Change background on hover */
    color: var(--white);                /* Change text color on hover */
    transform: scale(1.05);             /* Slightly enlarge on hover */
}

/* Checkbox Styling */
label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--gray-dark);
    cursor: pointer;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--blue-mid);
    border-radius: 5px;
    margin-right: 10px;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: var(--blue-mid);
    border-color: var(--blue-dark);
}

input[type="checkbox"]:hover {
    border-color: var(--blue-dark);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 5px var(--blue-light);
}
