/* 
  codeMetrics - Professional Styling
  Brand Colors: 
  Navy: #1E2957
  Emerald: #1D9E75
  Background: #F8F9FC
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Playfair+Display:wght@400;600;700;900&display=swap');

:root {
    --primary-navy: #1E2957;
    --accent-emerald: #1D9E75;
    --bg-light: #F8F9FC;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    background-image: 
        linear-gradient(rgba(30, 41, 87, 0.03) 1px, transparent 1px),
        linear-gradient(90px, rgba(30, 41, 87, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

section {
    padding: 100px 5%;
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: var(--white);
    padding: 5px 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Unique Brand Logo */
.logo-btn {
    display: flex;
    align-items: center;
}

.logo-btn img {
    height: 220px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

nav.scrolled .logo-btn img {
    height: 160px;
}

footer .logo-btn img {
    height: 160px;
}

.logo-btn:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-btn img {
        height: 120px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
}

nav.scrolled .nav-links a {
    color: var(--primary-navy);
}

.nav-links a.active, .nav-links a:hover {
    color: var(--accent-emerald) !important;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

nav.scrolled .mobile-menu-btn {
    color: var(--primary-navy);
}

/* Button Component */
.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: #168e68;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 158, 117, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-navy);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--primary-navy);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(29, 158, 117, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0); }
    100% { transform: translate(100px, 100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Stats Section */
.stats {
    background: var(--white);
    padding: 60px 5%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-emerald);
    box-shadow: 0 15px 40px rgba(30, 41, 87, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-emerald);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Course Cards */
.courses-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 8px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    background: white;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-emerald);
    color: white;
    border-color: var(--accent-emerald);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(29, 158, 117, 0.15);
}

.course-content {
    padding: 30px;
}

.course-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-emerald);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-price {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 1.1rem;
}

.details-toggle {
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.details-toggle:hover {
    opacity: 0.8;
}

.course-outline {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styling */
.controls-wrapper select:focus, 
.controls-wrapper input:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.1);
}

.search-box i {
    transition: var(--transition);
}

.search-box input:focus + i {
    color: var(--accent-emerald);
}

@media (max-width: 768px) {
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch !important;
    }
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: white;
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 900;
}

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

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent-emerald);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Page Headers */
.page-header {
    background: var(--primary-navy);
    padding: 180px 5% 100px;
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
    background: #EBF1FF;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: var(--accent-emerald);
    opacity: 0.15;
    font-family: var(--font-heading);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .contact-container { grid-template-columns: 1fr; }
    .page-header { padding: 150px 5% 80px; }
    .page-header h1 { font-size: 2.8rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; text-align: center; }
}
