/* ========================================
   iWordSmith - ICTC Publication House
   Book Writing, Selling & Publication Services
   by ICTC Learning Solutions
   Color Scheme: Ink, Paper & Gold
   ======================================== */

/* CSS Variables */
:root {
    --primary: #2B1B4D;
    --primary-dark: #1A0F2E;
    --primary-deep: #140B24;
    --primary-light: #5B3FA3;
    --primary-soft: #F0EBF8;
    --gold: #C9A227;
    --gold-dark: #A07F15;
    --gold-light: #F2D98B;
    --accent: #E8B923;
    --accent-dark: #B78A1F;
    --accent-light: #FBE9A6;
    --paper: #FDFBF7;
    --paper-light: #F8F3EA;
    --paper-dark: #EFE6D5;
    --crimson: #A03E2F;
    --crimson-light: #F7E9E6;
    --text-dark: #231B38;
    --text-light: #6B6478;
    --text-white: #FFFDF8;
    --bg-light: #F8F5F0;
    --bg-white: #FFFFFF;
    --border-color: #E7DFD0;
    --shadow-sm: 0 1px 2px rgba(20, 11, 36, 0.05);
    --shadow-md: 0 4px 16px rgba(20, 11, 36, 0.09);
    --shadow-lg: 0 12px 32px rgba(20, 11, 36, 0.14);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
    --gradient-main: linear-gradient(135deg, #140B24 0%, #2B1B4D 50%, #4A2E8A 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: #FFFFFF;
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.header-nav {
    background: var(--gradient-main);
    position: relative;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--text-white);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(232, 185, 35, 0.45), 0 0 18px rgba(232, 185, 35, 0.25);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(232, 185, 35, 0.9), 0 0 24px rgba(232, 185, 35, 0.6);
}

.nav-links a.ictc-home {
    background: linear-gradient(135deg, #DC2626 0%, #7F1D1D 50%, #000000 100%);
    color: #FFFFFF;
    font-weight: 800;
    border: 2px solid #FFFFFF;
    text-shadow: none;
}

.nav-links a.ictc-home:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #111111 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
    text-shadow: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: var(--gradient-main);
    color: var(--text-white);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(91, 63, 163, 0.28) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(232, 185, 35, 0.15);
    border: 1px solid rgba(232, 185, 35, 0.45);
    color: var(--accent-light);
    margin-bottom: 18px;
}

.hero-text h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-text h2 span {
    color: var(--accent);
    font-style: italic;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Floating literary words */
.float-words {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.float-words span {
    position: absolute;
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255, 253, 248, 0.14);
    letter-spacing: 0.5px;
    animation: floatUp 16s linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(110vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-15vh); opacity: 0; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-deep);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 185, 35, 0.45);
}

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

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

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

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

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

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-soft {
    background: var(--paper-light);
}

.section-white {
    background: var(--paper);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    background: var(--paper-dark);
    color: var(--gold-dark);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header h2 span {
    color: var(--gold-dark);
    font-style: italic;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto;
}

/* ========================================
   COMING SOON / RESOURCES BOX
   ======================================== */
.coming-soon-box {
    border: 2px dashed var(--gold);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.coming-soon-box::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.coming-soon-box .soon-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
}

.coming-soon-box h5 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.coming-soon-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto 18px;
    line-height: 1.7;
}

.soon-pill {
    display: inline-block;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    background: var(--crimson-light);
    color: var(--crimson);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ========================================
   SERVICE TRACKS
   ======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-head {
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-head .flag {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.service-head h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.service-list {
    margin-bottom: 16px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-dark);
    margin-bottom: 7px;
    line-height: 1.5;
}

.service-list li i {
    color: var(--gold-dark);
    margin-top: 3px;
    flex-shrink: 0;
}

.service-list li .soon-tag {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--crimson);
    background: var(--crimson-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* service head gradient variants */
.svc-write { background: linear-gradient(135deg, #1A0F2E 0%, #2B1B4D 100%); }
.svc-edit { background: linear-gradient(135deg, #A07F15 0%, #C9A227 100%); }
.svc-design { background: linear-gradient(135deg, #7C2D12 0%, #B45309 100%); }
.svc-publish { background: linear-gradient(135deg, #3B1D8A 0%, #5B3FA3 100%); }
.svc-sell { background: linear-gradient(135deg, #155E75 0%, #0E7490 100%); }
.svc-promote { background: linear-gradient(135deg, #A03E2F 0%, #BE5B4A 100%); }

/* ========================================
   AUTHOR JOURNEY / HOW IT WORKS
   ======================================== */
.path-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.path-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.path-step .step-num {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary-deep);
    border-radius: var(--radius-full);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.path-step h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.path-step p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ========================================
   WHY CHOOSE US
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   TRAINING PROGRAM
   ======================================== */
.training-section {
    background: var(--gradient-main);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.training-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.16) 0%, transparent 70%);
    border-radius: 50%;
}

.training-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}

.training-text .section-tag {
    background: rgba(232, 185, 35, 0.15);
    color: var(--accent-light);
}

.training-text h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.training-text h2 .highlight {
    color: var(--accent);
    font-style: italic;
}

.training-text p {
    color: rgba(255, 253, 248, 0.78);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.training-text .btn-primary {
    margin-top: 12px;
}

.training-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.training-point {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition);
}

.training-point:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.training-point .icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.training-point h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-white);
}

.training-point p {
    font-size: 0.82rem;
    color: rgba(255, 253, 248, 0.7);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .training-wrap {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--gradient-main);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #140B24 0%, #0A0614 100%);
    color: var(--text-white);
    padding: 60px 0 30px;
}

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

.footer-brand h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--accent);
}

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

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero-text h2 {
        font-size: 2.4rem;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-deep);
        flex-direction: column;
        padding: 20px;
        gap: 14px;
        border-radius: 0 0 14px 14px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-top {
        justify-content: flex-start;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text h2 {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .features-grid,
    .path-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

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