* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.header-title-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-title-link:hover {
    opacity: 0.8;
}

.site-title {
    margin: 0;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.author-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
    font-style: italic;
    margin: 0;
    line-height: 1.2;
}

.header-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
    display: block;
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.logout-btn {
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    color: #dc3545;
}

.logout-btn:hover {
    color: #fff;
    background-color: #dc3545;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: #f0f0f0;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
    position: relative;
}

.menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.language-toggle {
    display: flex;
    align-items: center;
}

.login-btn {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.login-btn.active {
    background-color: #1e7e34;
}

.login-btn.logged-in {
    background-color: #6c757d;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.8;
}

.login-btn.logged-in:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    opacity: 1;
}

.login-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.lang-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.lang-btn:hover {
    background-color: #0056b3;
}

.lang-btn:active {
    transform: scale(0.98);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}


.hero-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: 600;
    margin-top: 1rem;
}

.email-link {
    font-size: 1.2rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.email-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.phone-link {
    font-size: 1.2rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.phone-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 2rem;
    align-items: start;
}

.info-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.info-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}

.info-card-header {
    padding: 1.5rem;
    background-color: #2c3e50;
    color: white;
    flex-shrink: 0;
}

.info-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.info-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    background-color: #fff;
}

.info-card-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.info-card:hover .info-card-content {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.info-card:hover .info-card-content::after {
    opacity: 0;
}

.info-card-image {
    width: 100%;
    height: 200px;
    max-height: 500px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    margin-bottom: 1rem;
    opacity: 0.7;
    transform: scale(0.98);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s, object-fit 0.4s ease, height 0.4s ease, filter 0.4s ease 0.1s, clip-path 0.4s ease;
    filter: blur(2px);
    display: block;
    clip-path: inset(0 round 8px);
}

.info-card:hover .info-card-image {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    height: 500px;
    max-height: 500px;
    object-fit: cover;
    object-position: center top;
    width: 100%;
    border-radius: 8px;
    clip-path: inset(0 round 8px);
    transition: opacity 0.4s ease, transform 0.4s ease, object-fit 0.4s ease, height 0.4s ease, filter 0.4s ease, clip-path 0.4s ease;
}

.info-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0 1.5rem;
    opacity: 0.85;
    transform: translateY(0);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, padding 0.4s ease;
}

.info-card:hover .info-card-content p {
    opacity: 1;
    padding: 0;
}

.intro {
    background-color: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.about-image {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.features-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.features-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.features-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.closing {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #28a745;
    font-style: italic;
    margin-top: 2rem;
}

.cta {
    text-align: center;
    padding: 2rem 0;
}

.cta-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.cta-button:active {
    transform: translateY(0);
}

footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

.contacts-section {
    text-align: center;
}

.contacts-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #ecf0f1;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    
    .header-left {
        gap: 1rem;
        flex: 1;
        min-width: 0;
    }
    
    .header-right {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .header-nav {
        right: 1rem;
        min-width: 180px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
    
    .logo {
        height: 45px;
    }
    
    .main-title {
        font-size: 1.2rem;
    }
    
    .author-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-heading {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin: 2rem 0;
    }
    
    .info-card {
        min-height: 150px;
    }
    
    .info-card-header {
        padding: 1.2rem;
    }
    
    .info-card-header h3 {
        font-size: 1.3rem;
    }
    
    .info-card:hover .info-card-content {
        max-height: 800px;
        padding: 1.2rem;
    }
    
    .info-card-image {
        height: 150px;
    }
    
    .intro {
        padding: 2rem 1.5rem;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .about-image {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
        max-width: 100%;
    }
    
    .features-list li {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .closing {
        font-size: 1.1rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .contacts-section h3 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
}

/* Affiliate Products Styles */
.affiliate-products {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.affiliate-category {
    margin-bottom: 3rem;
}

.affiliate-category h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
}

.affiliate-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.affiliate-product-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.affiliate-product-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 1rem;
    background-color: #f8f9fa;
}

.affiliate-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.4;
    padding: 0 1rem;
    padding-top: 1rem;
}

.affiliate-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem;
    padding-bottom: 1rem;
    margin-top: auto;
}

.affiliate-link-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.affiliate-link-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Responsive styles for affiliate products */
@media (max-width: 768px) {
    .affiliate-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .affiliate-products-grid {
        grid-template-columns: 1fr;
    }
    
    .affiliate-product-item img {
        height: 200px;
    }
}

.drive-folders-section {
    margin-bottom: 3rem;
}