/* ========================================
   Landing Page Styles - UIN Raden Mas Said
   Premium & Modern Design System
   ======================================== */

:root {
    /* Primary Colors - Light Teal Theme */
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: #2dd4bf;
    --primary-lighter: #99f6e4;

    /* Secondary Colors - Yellow/Gold Theme */
    --secondary: #eab308;
    --secondary-dark: #ca8a04;
    --secondary-light: #facc15;

    /* Dark Colors */
    --dark: #115e59;
    --dark-alt: #0f766e;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;

    /* Backgrounds */
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.navbar.scrolled .brand-title {
    color: var(--dark);
}

.navbar.scrolled .brand-subtitle {
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

.btn-portal {
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: var(--dark);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4);
    background: var(--secondary-light);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    background: var(--gradient-hero);
}

/* Abstract Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    color: white;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #bbf7d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

.btn-primary-hero {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.5);
}

.btn-outline-hero {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 55%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 5;
    display: none;
    /* Visible on desktop loop */
}

@media (min-width: 992px) {
    .hero-image {
        display: block;
    }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 5rem 5%;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--bg-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
    border-color: var(--primary-lighter);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #f0fdf4;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #115e59;
    color: white;
    padding: 4rem 5% 2rem;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   Smooth transitions across all devices
   ======================================== */

/* Base smooth transitions for all elements */
* {
    transition-property: margin, padding, font-size, width, height, transform;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

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

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-title {
        font-size: 3.75rem;
    }

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

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 3.25rem;
    }

    .hero-content {
        max-width: 550px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar {
        padding: 0 3%;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .btn-portal {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 0 3%;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

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

    .features {
        padding: 4rem 3%;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
    }

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

/* Tablet Portrait / Large Mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .navbar {
        padding: 0 1rem;
        height: 70px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 85vh;
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-primary-hero,
    .btn-outline-hero {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .features {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
    :root {
        --header-height: 65px;
    }

    .navbar {
        padding: 0 1rem;
        height: 65px;
    }

    .brand {
        gap: 0.75rem;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.6rem;
    }

    .nav-links {
        display: none;
    }

    .btn-portal {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 5rem 1rem 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-label {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .btn-primary-hero,
    .btn-outline-hero {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .shape {
        display: none;
    }

    .features {
        padding: 2.5rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .section-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .feature-title {
        font-size: 1.05rem;
        margin-bottom: 0.65rem;
    }

    .feature-text {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand h3 {
        font-size: 1.25rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.25rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (up to 359px) */
@media (max-width: 359px) {
    .navbar {
        padding: 0 0.75rem;
        height: 60px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .brand-title {
        font-size: 0.85rem;
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        padding: 4.5rem 0.75rem 2.5rem;
    }

    .hero-label {
        font-size: 0.65rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .btn-primary-hero,
    .btn-outline-hero {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .features {
        padding: 2rem 0.75rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .footer {
        padding: 2rem 0.75rem 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }

    .btn-portal:hover {
        transform: none;
    }

    .btn-primary-hero:hover,
    .btn-outline-hero:hover {
        transform: none;
    }

    /* Larger touch targets */
    .nav-link {
        padding: 0.5rem;
    }

    .btn-portal,
    .btn-primary-hero,
    .btn-outline-hero {
        min-height: 48px;
    }
}

/* Landscape Phone Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 4.5rem;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }

    .btn-primary-hero,
    .btn-outline-hero {
        width: auto;
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .hero-buttons {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .features {
        padding: 2rem;
    }
}

/* ========================================
   Scroll Reveal Animations - Landing Page
   ======================================== */

/* Base reveal styles - Bi-directional (scroll up & down) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from bottom */
.scroll-reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from top */
.scroll-reveal-down {
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal-down.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from left */
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal from right */
.scroll-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale pop-up effect */
.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Fade only */
.scroll-reveal-fade {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scroll-reveal-fade.visible {
    opacity: 1;
}

/* Rotate reveal */
.scroll-reveal-rotate {
    opacity: 0;
    transform: translateY(40px) rotate(-5deg);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal-rotate.visible {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* Stagger delay classes */
.scroll-delay-1 {
    transition-delay: 0.1s;
}

.scroll-delay-2 {
    transition-delay: 0.2s;
}

.scroll-delay-3 {
    transition-delay: 0.3s;
}

.scroll-delay-4 {
    transition-delay: 0.4s;
}

.scroll-delay-5 {
    transition-delay: 0.5s;
}

.scroll-delay-6 {
    transition-delay: 0.6s;
}

.scroll-delay-7 {
    transition-delay: 0.7s;
}

.scroll-delay-8 {
    transition-delay: 0.8s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .scroll-reveal,
    .scroll-reveal-up,
    .scroll-reveal-down,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale,
    .scroll-reveal-fade,
    .scroll-reveal-rotate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}