/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 1rem;
}

.header h1 a {
    color: #f1ecee;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 2.5rem;
    display: inline-block;
}

.header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.header h1 a:hover {
    color: #3498db;
}

/* Navigation Styles */
nav {
    background-color: #34495e;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.topnav a {
    color: white;
    text-align: center;
    padding: 0.875rem 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: block;
}

.topnav a:hover {
    background-color: #3498db;
    color: #fff;
}

.menu-icon {
    display: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.625rem;
}

/* Main Content Layout */
.main-container {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.column {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.column h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.column.side {
    flex: 1;
    min-width: 250px;
}

.column.middle {
    flex: 2;
    min-width: 300px;
}

/* Card Styles */
.card-container {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 250px;
}

.card {
    width: 100%;
    max-width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.03);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
    text-align: center;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.625rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 0.75rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-big {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 0.5rem;
}

.footer-section.links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-section.links a:hover {
    color: #3498db;
}

.footer-section.about p {
    margin-bottom: 1rem;
}

.footer-section.about .contact span {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section.about .socials {
    margin-top: 1.5rem;
}

.footer-section.about .socials a {
    color: #ecf0f1;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-section.about .socials a:hover {
    color: #3498db;
    transform: translateY(-3px);
}

.contact-form .text-input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .text-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.footer-bottom {
    background-color: #233240;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .column.side, .column.middle, .card-container {
        flex: none;
        width: 100%;
    }
    
    .card-container {
        margin-top: 1.5rem;
    }
    
    .card {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .header h1 a {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: left;
    }
    
    .topnav.responsive .nav-links {
        display: flex;
    }
    
    .topnav a {
        padding: 1rem;
    }
    
    .header h1 a {
        font-size: 1.75rem;
    }
    
    .header p {
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem;
    }
    
    .column {
        padding: 1rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}