:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --accent-orange: #00E5FF;
    /* Cyan/Blue */
    --accent-orange-hover: #00B8D4;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --font-main: 'Inter', sans-serif;
    --spacing-container: 1200px;
}

/* ... existing code ... */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
    background-color: #2a2a2a;
    /* Placeholder color */
    min-height: 200px;
    /* Ensure visibility if missing */
    object-fit: cover;
}

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 112, 67, 0.3);
}

/* Hero Section */
/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('assets/tutor/bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 0;
}

/* Ambient Background */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-orange);
    top: -100px;
    left: -100px;
    animation: pulseGlow 10s infinite alternate;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: #18FFFF;
    /* Light Cyan Accent */
    bottom: -100px;
    left: -100px;
    animation: pulseGlow 8s infinite alternate-reverse;
}

.floating-shape {
    position: absolute;
    color: var(--accent-orange);
    opacity: 0.2;
    z-index: 1;
    font-size: 3rem;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
    font-size: 2rem;
}

.shape-3 {
    top: 30%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
}

/* Hero Seal Overlay - Final Fix */
.hero-seal {
    position: absolute !important;
    top: 50px !important;
    right: 50px !important;
    width: 160px !important;
    height: 160px !important;
    z-index: 100 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.hero-seal img {
    /* Force square dimensions to avoid ovaling */
    width: 400px !important;
    height: 400px !important;
    min-width: 160px !important;
    min-height: 160px !important;
    object-fit: contain !important;

    /* Clean circular mask */
    clip-path: circle(48% at center) !important;
    border-radius: 50% !important;

    /* Transparency trick: Push white to pure black via contrast/invert */
    /* Order matters: contrast/brightness first -> then invert -> then color adjust */
    filter: contrast(2) brightness(1.2) invert(1) hue-rotate(180deg) saturate(5) brightness(1.1) !important;
    mix-blend-mode: screen !important;
    background: transparent !important;

    /* Rotation animation */
    /* animation: rotateSealFinal 20s linear infinite !important; */
    /* transform-origin: center center !important; */
}

@keyframes rotateSealFinal {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



.hero-content {
    order: 2;
    /* Text on right */
    text-align: right;
    padding-right: 50px;
}

.hero-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-orange);
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent-orange);
    /* Fixed color */
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 15px;
    /* Background clip moved to chars */
    color: white;
    display: flex;
    justify-content: flex-end;
    /* Align right */
    gap: 2px;
}

.hero-name {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 0;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-image {
    order: 1;
    /* Image on left */
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.hero-image img {
    background-color: transparent !important;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    animation: fadeInLeft 1.2s ease, breathe 20s ease-in-out infinite;
    /* Added breathe */
    max-height: 115vh;
    /* Significantly larger */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
    transform-origin: bottom center;
    margin-left: -100px;
    /* Pull closer */
    margin-bottom: -5vh;
    /* Drop slightly to avoid too much top cut */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    /* Subtle zoom */
}

/* Split Flap / Airport Text Animation */
.char-flip {
    display: inline-block;
    position: relative;
    background-color: #222;
    /* Darker tile background */
    color: #fff;
    /* White text for contrast on tile */
    padding: 2px 12px;
    /* Consistent padding */
    border-radius: 4px;
    margin: 0 4px;
    /* Gap between tiles */
    font-family: 'Inter', monospace;
    /* Monospace for alignment */
    transform-style: preserve-3d;
    transform-origin: center bottom;
    /* Flip from bottom axis of top half feel */
    opacity: 0;
    transform: rotateX(-90deg);
    animation: flipDown 0.6s cubic-bezier(0.15, 0.45, 0.15, 1.4) forwards;
    /* Bouncy flip */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    /* Depth */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Simulated split line */
.char-flip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.8);
    /* Dark split line */
    z-index: 10;
}

@keyframes flipDown {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateX(-90deg);
    }

    100% {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg);
    }
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Strengths */
.strengths-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.strength-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
    transition: transform 0.3s;
}

.strength-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.strength-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-orange);
}

.strength-card p {
    color: var(--text-secondary);
}

/* Highlight */
.highlight-section {
    padding: 100px 0;
    background: var(--bg-dark);
    text-align: center;
}

.highlight-text {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
}

.accent-text {
    color: var(--accent-orange);
}

/* Rankers Slider */
.rankers-section {
    padding: 80px 0;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes duplicated content for smooth loop */
}

.ranker-card {
    width: 250px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.ranker-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #2a2a2a;
}

.ranker-info {
    padding: 15px;
    text-align: center;
}

.ranker-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.ranker-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Confidence Slider Images */
.gallery-img {
    height: 300px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Abiman Slider Images */
#abiman-track img {
    height: 300px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

#abiman-track {
    animation-duration: 150s;
    /* Much slower for many images */
}

/* Launch */
.launch-section {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/launch-bg.jpg');
    /* Needs placeholder */
    background-size: cover;
    background-position: center;
    text-align: center;
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
    margin-top: 30px;
}

/* Confidence / Theory / Practical / Prize Sections */
section {
    padding: 80px 0;
}

.content-split {
    display: flex;
    align-items: center;
    gap: 50px;
}

.content-split.reverse {
    flex-direction: row-reverse;
}

.text-block {
    flex: 1;
}

.gallery-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-grid img {
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 50px auto 0;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Testimonials */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.video-card {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover img {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 229, 255, 0.8);
    /* Cyan Match */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-list i {
    color: var(--accent-orange);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-list a {
    color: var(--text-primary);
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--accent-orange);
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-seal {
        display: none !important;
    }

    .hero-section {
        /* Allow height to adjust naturally on mobile layout if needed */
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        /* Space for top */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
        gap: 0;
    }

    .hero-content {
        order: 1;
        /* Text first on mobile for better visibility */
        text-align: center;
        padding-right: 0;
        margin-bottom: 0px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 9vw, 6rem);
        justify-content: center;
        /* Center the split-flap tiles */
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        margin-bottom: 5px;
    }

    .hero-image {
        order: 2;
        height: auto;
        justify-content: center;
        margin-top: -80px;
    }

    .hero-image img {
        max-height: 150vh;
        /* Much smaller on mobile */
        margin-left: 0;
        /* meaningful reset */
        margin-bottom: 0;
        filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
        padding-bottom: 100px;
    }

    .content-split,
    .content-split.reverse {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .contact-info .section-description {
        text-align: center !important;
    }
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}