:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #0ea5e9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif-font {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.nav-cta {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

/* --- HERO SECTION --- */
hero {
    display: block;
    padding-top: 140px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid var(--border);
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4);
}

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

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    position: relative;
}

.hero-card-badge {
    position: absolute;
    top: -15px;
    right: 25px;
    background: var(--accent);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.stat-item h4 {
    font-size: 1.5rem;
    color: var(--primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* --- ABOUT SECTION --- */
section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #bae6fd, #7dd3fc);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 6rem;
    box-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.2);
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-content .subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.credentials-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.credential-item i {
    color: var(--primary);
    background: #e0f2fe;
    padding: 0.5rem;
    border-radius: 8px;
}

/* --- LATEST POSTS / INFO --- */
.blogs-section {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.blog-img {
    height: 200px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.blog-body {
    padding: 1.75rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-meta span {
    color: var(--primary);
    font-weight: 600;
}

.blog-body h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

/* --- CONTACT SECTION --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info-box p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-form-box {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    background: var(--bg-light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

textarea.form-control {
    resize: vertical;
    height: 130px;
}

/* --- DEPLOYMENT BANNER --- */
.github-deploy-section {
    background: #0f172a;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.github-deploy-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.github-deploy-section p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.github-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #1e293b;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #334155;
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 968px) {
    .hero-grid, .about-grid, .contact-container {
        grid-template-columns: 1.1fr;
        gap: 3rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .contact-info-box, .contact-form-box {
        padding: 2rem;
    }
}
