/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scroll from floating elements */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating Decorative Elements */
.floating-element {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    animation-delay: -2s;
    animation-duration: 8s;
}

.floating-element:nth-child(3) {
    background: linear-gradient(135deg, #3730a3 0%, #1e3a8a 100%);
    animation-delay: -4s;
    animation-duration: 7s;
}

.floating-element:nth-child(4) {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    animation-delay: -1s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.nav-brand h2 {
    font-weight: 700;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.nav-brand h2:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 25px;
}

.nav-link:hover {
    color: #60a5fa;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(240, 242, 245, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    line-height: 1.1;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(30, 58, 138, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #374151;
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    letter-spacing: 0.02em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
    left: 0;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #fafafa 0%, #f0f2f5 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    background-clip: padding-box;
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.2);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights-desktop {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.about-highlights-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: #333;
    padding: 12px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.highlight:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    transform: translateX(10px);
}

.highlight i {
    color: #1e3a8a;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.highlight:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #764ba2;
}

/* Books Section */
.books {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.books h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    background: linear-gradient(135deg, #333 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 2;
    justify-items: center;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
}

/* Ensure books align properly and are centered */
@media (min-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 3rem;
        justify-content: center;
    }
    
    .book-card {
        max-width: 380px;
        min-width: 350px;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 2rem;
        justify-content: center;
    }
    
    .book-card {
        max-width: 380px;
        min-width: 320px;
    }
    
    .see-more-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 2rem;
        justify-content: center;
    }
    
    .book-card {
        max-width: 100%;
        min-width: 280px;
    }
    
    .see-more-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .book-description, .book-description-short {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

.book-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    width: 100%;
    max-width: 400px;
    min-width: 300px;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 20px;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.2);
    border-color: rgba(30, 58, 138, 0.3);
}

.book-card:hover::before {
    opacity: 0.05;
}

.book-cover {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    min-height: 300px;
}

.book-cover img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-info {
    padding: 2rem;
    position: relative;
}

.book-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.book-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Book description styles */
.book-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.book-description-short {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.see-more-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: inline-block;
}

.see-more-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.buy-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.buy-button:hover::before {
    left: 0;
}

/* Book Placeholder Styles */
.book-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px dashed #dee2e6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.placeholder-content {
    text-align: center;
    color: #495057;
    z-index: 2;
    position: relative;
    padding: 2rem;
}

.placeholder-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e3a8a;
    line-height: 1.3;
}

.placeholder-content p {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.placeholder-notice {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Articles Section */
.articles {
    padding: 100px 0;
    background: linear-gradient(135deg, #fafafa 0%, #f0f2f5 100%);
    position: relative;
}

.articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.articles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    background: linear-gradient(135deg, #333 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 20px;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.article-card:hover::before {
    opacity: 0.05;
}

.article-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    min-height: 200px;
}

.article-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
    position: relative;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    transition: color 0.3s ease;
}

.article-card:hover .article-content h3 {
    color: #667eea;
}

.article-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.read-more:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    transform: translateX(5px);
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Certificates & Competencies Section */
.certificates {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.certificates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.certificates h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    background: linear-gradient(135deg, #333 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.certificates-scroll {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    position: relative;
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: #1e3a8a #f0f0f0;
}

.certificates-scroll::-webkit-scrollbar {
    height: 8px;
}

.certificates-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.certificates-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 4px;
}

.certificates-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
}

.certificate-card {
    min-width: 300px;
    max-width: 350px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    flex-shrink: 0;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 20px;
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.2);
    border-color: rgba(30, 58, 138, 0.3);
}

.certificate-card:hover::before {
    opacity: 0.05;
}

.certificate-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    min-height: 200px;
}

.certificate-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px dashed #dee2e6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.certificate-info {
    padding: 1.5rem;
    position: relative;
}

.certificate-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.certificate-info p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Brands & Initiatives Section */
.brands {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.brands::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.brands h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    background: linear-gradient(135deg, #333 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.brand-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    padding: 2rem;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 20px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.1);
    border-color: rgba(30, 58, 138, 0.2);
}

.brand-card:hover::before {
    opacity: 0.02;
}

.brand-card:hover .brand-content h3 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.brand-logo::before {
    display: none;
}

.brand-card:hover .brand-logo::before {
    display: none;
}

.brand-logo img {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #1e3a8a;
    padding: 15px;
    background: white;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.brand-card:hover .brand-logo img {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
    border-color: #3b82f6;
}

.brand-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
    background: linear-gradient(135deg, #333 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
}

.brand-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.brand-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.brand-social-link:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
    border-color: rgba(30, 58, 138, 0.4);
}

.brand-social-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.brand-social-link:hover i {
    transform: scale(1.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 64, 175, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(30, 64, 175, 0.4) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.social-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    color: #ccc;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 0;
    }
    
    .nav {
        padding: 0.8rem 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 0;
    }
    
    .nav {
        padding: 0.8rem 1rem;
    }
    
    .nav-brand h2 {
        font-size: 1.3rem;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100vw;
        min-height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
    }
    .nav-menu.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }
    .nav-link {
        color: #1e3a8a;
        font-size: 1.2rem;
        padding: 1.2rem 0;
        border-radius: 0;
        display: block;
        border-bottom: 1px solid #e5e7eb;
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .nav-link:hover {
        background: #f0f2f5;
        color: #1e40af;
    }
    .hamburger {
        display: flex;
        z-index: 2100;
        position: relative;
        padding: 8px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .hamburger:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .about-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 1rem 0;
        text-align: center;
    }
    .about-image {
        order: 1;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    .profile-image {
        width: 180px;
        height: 180px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #1e3a8a;
        box-shadow: 0 15px 30px rgba(30, 58, 138, 0.2);
        transition: all 0.3s ease;
    }
    .profile-image:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
    }
    .about-text {
        order: 2;
        width: 100%;
    }
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    .about-text p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1rem;
        text-align: left;
    }
    /* Hide desktop highlights on mobile */
    .about-highlights-desktop {
        display: none;
    }
    
    /* Show mobile highlights on mobile */
    .about-highlights-mobile {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
        align-items: center;
    }
    .highlight {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 15px 20px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
        border: 1px solid rgba(30, 58, 138, 0.2);
    }
    .books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .articles-grid, .brands-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificates-scroll {
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .certificate-card {
        min-width: 280px;
        max-width: 320px;
    }
    .book-card {
        max-width: 100%;
        min-width: 280px;
        margin: 0 auto;
        padding: 16px 12px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(30,58,138,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .article-card, .brand-card {
        max-width: 100%;
        margin: 0 auto;
        padding: 16px 12px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(30,58,138,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .book-card:hover, .article-card:hover, .brand-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(30,58,138,0.15);
    }
    
    .book-placeholder {
        height: 250px;
    }
    
    .placeholder-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .placeholder-content p {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .placeholder-notice {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
    .book-cover img, .article-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 0 auto;
        display: block;
    }
    
    .brand-logo img {
        max-width: 90px;
        height: auto;
        border-radius: 50%;
        border: 3px solid #1e3a8a;
        padding: 10px;
        background: white;
        box-shadow: 0 8px 20px rgba(30, 58, 138, 0.15);
        margin: 0 auto;
        display: block;
    }
    
    .brand-social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin-top: 1.5rem;
        width: 100%;
    }
    
    .brand-social-link {
        width: 100%;
        justify-content: center;
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    .book-info h3, .article-content h3, .brand-content h3 {
        font-size: 1.1rem;
    }
    .book-info p, .article-content p, .brand-content p {
        font-size: 0.98rem;
        line-height: 1.5;
    }
    .book-price {
        font-size: 1.1rem;
        margin: 0.5rem 0;
    }
    .buy-button {
        width: 100%;
        font-size: 1.05rem;
        padding: 14px 0;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
        padding: 1.5rem 0 0 0;
    }
    .footer-section h3 {
        font-size: 1.2rem;
    }
    .footer-section p {
        font-size: 0.98rem;
    }
    .social-links {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .social-link {
        font-size: 1rem;
        padding: 10px 14px;
    }
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 90vw;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .cta-button {
        font-size: 1.1rem;
        padding: 14px 28px;
        border-radius: 30px;
    }
    
    .about-content {
        padding: 2rem 0;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .nav {
        padding: 0.6rem 0.8rem;
    }
    
    .nav-brand h2 {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 95vw;
        margin-bottom: 1.2rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    .book-card {
        padding: 12px 8px;
        border-radius: 12px;
        margin-bottom: 1rem;
        max-width: 100%;
        min-width: 260px;
    }
    
    .article-card, .brand-card {
        padding: 12px 8px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .book-cover img, .article-image img, .brand-logo img {
        border-radius: 10px;
    }
    
    .certificates-scroll {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .certificate-card {
        min-width: 260px;
        max-width: 300px;
    }
    
    .certificate-info h3 {
        font-size: 1.2rem;
    }
    
    .certificate-info p {
        font-size: 0.9rem;
    }
    
    .brand-social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin-top: 1.2rem;
        width: 100%;
    }
    
    .brand-social-link {
        width: 100%;
        justify-content: center;
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    
    .about-highlights {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .buy-button {
        font-size: 1rem;
        padding: 12px 0;
        border-radius: 25px;
    }
    
    .footer-content {
        padding: 1rem 0 0 0;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
    
    .book-placeholder {
        height: 200px;
    }
    
    .placeholder-content {
        padding: 1rem;
    }
    
    .placeholder-content h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .placeholder-content p {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
    
    .placeholder-notice {
        font-size: 0.75rem;
        margin-top: 0.6rem;
        padding: 0.4rem;
    }
}

body {
    overflow-x: hidden;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Additional responsive improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    /* Show desktop highlights on medium screens */
    .about-highlights-desktop {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        align-items: center;
    }
    
    /* Hide mobile highlights on medium screens */
    .about-highlights-mobile {
        display: none;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about-content {
        gap: 4rem;
    }
    
    /* Show desktop highlights on larger screens */
    .about-highlights-desktop {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        align-items: center;
    }
    
    /* Hide mobile highlights on larger screens */
    .about-highlights-mobile {
        display: none;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #f0f2f5 0%, #dbeafe 100%);
    color: #1e3a8a;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.07);
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
}

.tag:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    border-color: #1e3a8a;
} 

/* Landscape certificate adjustment for horizontal certificates */
.certificate-image img.landscape-cert {
    transform: rotate(90deg);
    width: auto;
    height: 180px;
    max-width: 260px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Ensure portrait certificates remain consistent */
.certificate-image img:not(.landscape-cert) {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
} 

/* Book Flip Effect */
.book-flip {
  perspective: 1200px;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-flip-inner {
  position: relative;
  width: 100%;
  min-height: 300px;
  transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
  transform-style: preserve-3d;
}
.book-flip-front, .book-flip-back {
  position: absolute;
  width: 100%;
  min-height: 300px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-flip-front img, .book-flip-back img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 10px 10px 0 0;
}
.book-flip-back {
  transform: rotateY(180deg);
}
.book-flip:hover .book-flip-inner,
.book-flip.flipped .book-flip-inner {
  transform: rotateY(180deg);
}

/* Mobile tap support */
@media (hover: none) and (pointer: coarse) {
  .book-flip:active .book-flip-inner,
  .book-flip.flipped .book-flip-inner {
    transform: rotateY(180deg);
  }
}

/* Ensure responsiveness */
@media (max-width: 767px) {
  .book-flip, .book-flip-inner, .book-flip-front, .book-flip-back {
    height: 220px;
    min-height: unset;
  }
  .book-flip-front img, .book-flip-back img {
    height: 220px;
    max-height: none;
  }
} 

/* Book flip cover: fit image to book card, fully responsive */
.book-cover.book-flip {
  position: relative;
  padding: 0;
  min-height: 300px;
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.book-flip-inner, .book-flip-front, .book-flip-back {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-flip-front img, .book-flip-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px 10px 0 0;
  display: block;
  margin: 0 auto;
  box-shadow: none;
}
@media (max-width: 767px) {
  .book-cover.book-flip {
    min-height: 220px;
    height: 220px;
  }
  .book-flip-inner, .book-flip-front, .book-flip-back {
    min-height: unset;
    height: 100%;
  }
  .book-flip-front img, .book-flip-back img {
    height: 100%;
    width: 100%;
  }
} 