
/* =========================================
   STREAMWAY ACADEMIC HUB - MAIN STYLES
========================================= */

:root {
    --primary: #17365d;
    --primary-dark: #102844;
    --primary-light: #294f7c;
    --text: #334155;
    --muted: #64748b;
    --background: #ffffff;
    --light: #f4f7fb;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 10px 35px rgba(15, 35, 60, 0.07);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(23, 54, 93, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
========================================= */

.hero-section {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(
            90deg,
            rgba(8, 27, 49, 0.97) 0%,
            rgba(8, 27, 49, 0.88) 45%,
            rgba(8, 27, 49, 0.28) 100%
        ),
        url("../images/hero-workspace.png") center / cover no-repeat;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
    color: #c5d5e8;
    margin-bottom: 20px;
}

.hero-section h1 {
    max-width: 720px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.17;
    letter-spacing: -1.5px;
    font-weight: 700;
    animation: fadeUp 0.7s ease both;
}

.hero-description {
    max-width: 600px;
    margin: 23px 0 30px;
    color: #dce6f1;
    font-size: 17px;
    line-height: 1.8;
    animation: fadeUp 0.9s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: fadeUp 1.1s ease both;
}

.hero-section .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}

.hero-section .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   COMMON SECTIONS
========================================= */

.section {
    padding: 85px 0;
}

.section-light {
    background: var(--light);
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-heading h2 {
    color: var(--primary);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-content {
    max-width: 950px;
    margin: auto;
    padding: 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #475569;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* =========================================
   CARDS
========================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.content-card {
    position: relative;
    background: var(--white);
    padding: 30px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.content-card:hover {
    transform: translateY(-6px);
    border-color: #b7c7d9;
    box-shadow: var(--shadow);
}

.content-card h3 {
    color: var(--primary);
    font-size: 19px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.content-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    margin-right: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* =========================================
   SUBSCRIPTION PLANS
========================================= */

.subscription-card {
    padding: 36px;
    border-top: 4px solid var(--primary);
}

.subscription-card h3 {
    font-size: 21px;
}

.plan-price {
    font-size: 38px !important;
    font-weight: 700;
    color: var(--primary) !important;
    margin: 15px 0 5px;
    letter-spacing: -1px;
}

.subscription-card ul {
    list-style: none;
    margin: 25px 0;
}

.subscription-card li {
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
    font-size: 14px;
    color: #475569;
}

.subscription-card li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
    margin-right: 12px;
}

.subscription-card .btn {
    width: 100%;
}

.section-note {
    text-align: center;
    margin-top: 25px;
    color: var(--muted);
    font-size: 13px;
}

/* =========================================
   CUSTOM PROJECT SECTION
========================================= */

.custom-project-content {
    max-width: 900px;
    margin: auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.custom-project-content h3 {
    color: var(--primary);
    font-size: 25px;
    margin-bottom: 15px;
}

.custom-project-content h4 {
    color: var(--primary);
    font-size: 17px;
    margin: 25px 0 12px;
}

.custom-project-content p {
    margin-bottom: 14px;
    font-size: 15px;
}

.custom-project-content ol {
    padding-left: 24px;
}

.custom-project-content ol li {
    padding: 6px 0;
    font-size: 14px;
}

.important-notice {
    background: #f2f5f9;
    border-left: 4px solid var(--primary);
    padding: 24px;
    margin: 28px 0;
    border-radius: 5px;
}

.important-notice h4 {
    margin-top: 0;
}

/* =========================================
   REGISTRATION
========================================= */

.registration-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* =========================================
   CONTACT
========================================= */

.contact-content {
    max-width: 700px;
    margin: auto;
    padding: 38px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-content h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 18px;
}

.contact-content p {
    margin: 9px 0;
    font-size: 15px;
}

.contact-content a {
    color: var(--primary);
    font-weight: 600;
}

.contact-content a:hover {
    text-decoration: underline;
}

/* =========================================
   FOOTER
========================================= */

.main-footer {
    background: #102844;
    color: #dbe5f0;
    text-align: center;
    padding: 32px 15px;
    font-size: 13px;
}

.main-footer p {
    margin: 5px 0;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1050px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section {
        min-height: 510px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .section {
        padding: 60px 0;
    }

    .hero-section {
        min-height: 490px;
        padding: 65px 0;
        background-position: 65% center;
    }

    .hero-section h1 {
        font-size: 38px;
    }

    .hero-description {
        font-size: 15px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .about-content,
    .custom-project-content,
    .contact-content {
        padding: 26px;
    }
}

@media (max-width: 550px) {
    .section {
        padding: 48px 0;
    }

    .hero-section {
        min-height: 460px;
        background-position: 65% center;
    }

    .hero-section h1 {
        font-size: 33px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .content-card {
        padding: 25px;
    }

    .subscription-card {
        padding: 27px;
    }

    .plan-price {
        font-size: 34px !important;
    }

    .about-content,
    .custom-project-content,
    .contact-content {
        padding: 21px;
    }

    .registration-links {
        flex-direction: column;
        align-items: stretch;
    }

    .registration-links .btn {
        width: 100%;
    }
}

/* =========================================
   ACCESSIBILITY / PERFORMANCE
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   IMPROVED SUBSCRIPTION CARDS
========================================= */

#subscriptions .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 950px;
    margin: auto;
    gap: 30px;
}

#subscriptions .subscription-card {
    padding: 42px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

#subscriptions .subscription-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

#subscriptions .plan-price {
    font-size: 43px !important;
    margin: 18px 0 8px;
}

#subscriptions .subscription-card > p:not(.plan-price) {
    font-size: 15px;
}

#subscriptions .subscription-card ul {
    margin: 25px 0;
    flex: 1;
}

#subscriptions .subscription-card li {
    font-size: 15px;
    padding: 13px 0;
}

#subscriptions .subscription-card .btn {
    padding: 14px;
    font-size: 15px;
}

#subscriptions .subscription-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(23, 54, 93, 0.12);
}

/* Subscription responsive */

@media (max-width: 700px) {
    #subscriptions .card-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    #subscriptions .subscription-card {
        min-height: auto;
        padding: 30px;
    }
}

/* CONTACT SECTION */

.contact-section {
    background: #f4f7fb;
    padding: 85px 0;
}

.section-tag {
    display: inline-block;
    color: #17365d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.contact-section .section-heading h2 {
    font-size: 34px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 45px auto 0;
}

.contact-info,
.contact-cta {
    padding: 40px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px rgba(23,54,93,0.06);
}

.contact-info h3 {
    font-size: 24px;
    color: #17365d;
    margin-bottom: 12px;
}

.contact-info > p,
.contact-cta p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 25px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 17px 0;
    border-bottom: 1px solid #edf0f4;
}

.contact-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #edf3fa;
    color: #17365d;
    border-radius: 9px;
    font-size: 19px;
}

.contact-detail strong {
    display: block;
    color: #17365d;
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-detail a,
.contact-detail p {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin: 3px 0;
}

.contact-detail a:hover {
    color: #17365d;
}

.contact-cta {
    background: #17365d;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-cta > span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #cbd5e1;
    font-weight: 600;
}

.contact-cta h3 {
    font-size: 29px;
    line-height: 1.4;
    margin: 20px 0 12px;
}

.contact-cta p {
    color: #dbe4ef;
    line-height: 1.8;
}

.contact-cta .btn {
    align-self: flex-start;
    background: #ffffff;
    color: #17365d;
    border-color: #ffffff;
    margin-top: 10px;
}

.contact-cta .btn:hover {
    background: #eaf0f7;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .contact-info,
    .contact-cta {
        padding: 28px;
    }

    .contact-section .section-heading h2 {
        font-size: 27px;
    }

    .contact-cta h3 {
        font-size: 24px;
    }
}
/* Single Scroll Toggle */
.scroll-toggle {
    position: fixed;
    right: 22px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #17365d;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

.scroll-toggle:hover {
    background: #24558c;
    transform: translateY(-3px);
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 600px) {
    .scroll-toggle {
        right: 12px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   STREAMWAY WHATSAPP FLOATING BUTTON
========================================== */

.wa-float {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 64px;
    height: 64px;

    background: #25D366;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
    text-decoration: none;

    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

/* WhatsApp logo - always fixed */

/* WhatsApp logo size */
.wa-float svg {
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
    z-index: 2;
}

/* ==========================================
   ANIMATED CIRCULAR WAVES
========================================== */

.wa-float::before,
.wa-float::after {
    content: "";

    position: absolute;
    inset: 0;

    border: 2px solid #25D366;
    border-radius: 50%;

    opacity: 0;
    z-index: -1;

    pointer-events: none;

    animation: wa-wave-animation 3s ease-out infinite;
}

/* Second wave delay */

.wa-float::after {
    animation-delay: 1.5s;
}

/* Wave animation */

@keyframes wa-wave-animation {

    0% {
        transform: scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.75;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 600px) {

    .wa-float {
        width: 56px;
        height: 56px;

        right: 16px;
        bottom: 18px;
    }

    .wa-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    .wa-float::before,
    .wa-float::after {
        animation: none;
    }
}


/* =====================================
   PREVENT FLOATING BUTTON OVERLAPPING
===================================== */

/* Scroll Up / Down Button */
#scrollToggle {
    position: fixed;
    right: 25px;
    bottom: 110px;
    z-index: 9998;
}

/* WhatsApp Button */
.wa-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
}

/* Mobile Responsive */
@media (max-width: 600px) {

    #scrollToggle {
        right: 16px;
        bottom: 88px;
    }

    .wa-float {
        right: 16px;
        bottom: 18px;
    }
}
