/* 
   pccert Premium Website Design 
   Theme: Professional, Trustworthy, Modern
*/

:root {
    /* Color Palette */
    --primary-color: #0f172a;
    /* Deep Navy Blue */
    --secondary-color: #334155;
    /* Slate */
    --accent-color: #10b981;
    /* Emerald Green */
    --accent-hover: #059669;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --bg-light: #ffffff;
    --bg-off-white: #f1f5f9;
    --border-color: #cbd5e1;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-spacing: 5rem;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    /* Account for fixed header height (approx 96px) */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

/* Typography Utilities */
.highlight {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8em 2em;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* Header & Navigation */
.header {
    background-color: var(--bg-light);
    /* Or transparent initially? Let's stick to simple for now */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0 6rem;
    /* Extra top padding for visually centered feel */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    /* Lighter slate for text on dark bg */
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Decorative Hero Shape - Abstract CSS Art */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--accent-color), #f59e0b);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.hero-shape::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -20px;
    left: -20px;
    z-index: -1;
    animation: morph 8s ease-in-out infinite reverse;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Services */
.services {
    background-color: var(--bg-off-white);
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Accreditations Section */
.accreditations {
    background-color: white;
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.accreditations-label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.8;
}

.partner-logo {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    transition: var(--transition-fast);
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.1);
    /* Light Green */
    color: var(--accent-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-box svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
}

.check-list {
    margin-top: 1.5rem;
}

.check-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-section .section-desc,
.contact-info p {
    color: #cbd5e1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.info-item {
    margin-top: 1.5rem;
    display: block;
    color: var(--bg-off-white);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-off-white);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
    background-color: #020617;
    /* Very dark navy */
    color: #94a3b8;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Bookshelf Page */
.page-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-header .section-title {
    color: var(--text-light);
    /* Override default dark color for contrast on dark bg */
}

.page-header .section-desc {
    color: #cbd5e1;
    /* Light slate for subtitle */
}

.bookshelf-section {
    background-color: var(--bg-off-white);
    padding-top: 2.5rem;
    /* Reduced from default 5rem */
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.book-cover {
    height: 300px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.book-cover img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

.book-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-author {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.book-desc {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.book-btn {
    text-align: center;
    border-color: var(--primary-color);
    color: var(--primary-color);
    margin-top: auto;
}

.book-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease-in-out;
        padding-top: 5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .hero-container,
    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        /* Show image/shape first on mobile? Maybe. Let's keep text first actually */
        height: 300px;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Toggle Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Morphing Hero Images */
.hero-morph-container {
    width: 600px;
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-morph-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease-in-out;
}

.img-1 {
    z-index: 2;
    animation: fadeOut 60s infinite alternate;
}

.img-2 {
    z-index: 1;
}

@keyframes fadeOut {

    0%,
    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .hero-morph-container {
        width: 100%;
        max-width: 500px;
        height: 300px;
        margin: 2rem auto 0;
    }
}