/* Theme Variables from theme.json */
:root {
    /* Colors */
    --color-primary: #34B8C1;
    --color-primary-dark: #27949C;
    --color-primary-light: #6DD6DC;
    --color-accent: #FF6B35;
    --color-bg: #F7F9FA;
    --color-surface: #FFFFFF;
    --color-error: #E53E3E;
    --color-warning: #F2A900;
    --color-success: #2F9E44;
    --text-primary: #0F1720;
    --text-secondary: #5B6B73;
    --color-border: #E1E6E8;
    
    /* Typography */
    --font-family: Inter, Helvetica, Arial, sans-serif;
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(13, 30, 35, 0.06);
    --shadow-md: 0 6px 18px rgba(13, 30, 35, 0.08);
    --shadow-lg: 0 10px 40px rgba(13, 30, 35, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* Ensure all elements are responsive */
* {
    max-width: 100%;
}

/* Mobile-first responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
}

/* Ensure proper touch targets on mobile */
@media (max-width: 768px) {
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Fix for mobile viewport */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 101;
}

.brand-name {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
}

.nav-links {
    display: flex;
    min-width: 800px;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
}

.nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-primary);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.95) 0%, rgba(109, 214, 220, 0.9) 100%);
    backdrop-filter: blur(10px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-buttons .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-align: center;
    justify-content: center;
}

.mobile-nav-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.mobile-nav-buttons .btn-primary {
    background: white;
    color: var(--color-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(52, 184, 193, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 184, 193, 0.4);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

.btn-outline-white {
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

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

/* Tutoring Hero Section */
.tutoring-hero {
    padding: 6rem 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

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

.headline-container {
    margin-bottom: 2.5rem;
    position: relative;
}

.tutoring-headline {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.headline-main {
    color: var(--text-primary);
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.headline-accent {
    color: var(--color-success);
    font-size: 3.2rem;
    font-weight: 700;
    display: block;
    position: relative;
}

.headline-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-success) 0%, var(--color-primary) 100%);
    border-radius: 2px;
}

.headline-sub {
    color: var(--text-secondary);
    font-size: 2.8rem;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.highlight-chemist {
    background: var(--color-success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: 0 0.25rem;
}

.cta-container {
    display: flex;
    justify-content: center;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(52, 184, 193, 0.4);
    border-color: var(--color-primary-light);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.trending-section {
    margin-bottom: 3rem;
}

.trending-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.trending-tag {
    background: var(--color-surface);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.trending-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: bold;
}

.stat-icon-green {
    color: var(--color-success);
    background: rgba(47, 158, 68, 0.1);
}

.stat-icon-orange {
    color: var(--color-accent);
    background: rgba(255, 107, 53, 0.1);
}

.stat-icon-yellow {
    color: var(--color-warning);
    background: rgba(242, 169, 0, 0.1);
}

.stat-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.diamond {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    border-radius: var(--radius-sm);
}

.diamond-orange {
    background: var(--color-accent);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.diamond-green {
    background: var(--color-success);
    box-shadow: 0 4px 15px rgba(47, 158, 68, 0.3);
}

.diamond-1 {
    top: 15%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.diamond-2 {
    top: 25%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.diamond-3 {
    bottom: 20%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
}

.photo-card {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

.photo-card:hover {
    transform: scale(1.1);
}

.photo-placeholder {
    color: var(--color-primary);
    opacity: 0.7;
}

.photo-card-1 {
    top: 20%;
    right: 8%;
    animation: float 9s ease-in-out infinite;
}

.photo-card-2 {
    bottom: 30%;
    right: 12%;
    animation: float 11s ease-in-out infinite reverse;
}

.photo-card-3 {
    top: 60%;
    left: 8%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E0F7F8 0%, #B3FBFD 50%, #E0F7F8 100%);
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(52, 184, 193, 0.03) 30px, rgba(52, 184, 193, 0.03) 60px);
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(109, 214, 220, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Services Overview */
.services-overview {
    padding: 5rem 0;
    background: var(--color-surface);
}

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

.service-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.service-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.service-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(5px);
    display: inline-block;
}

/* Service Detail Sections */
.service-detail {
    padding: 6rem 0;
    background: var(--color-bg);
}

.service-detail.alternate {
    background: var(--color-surface);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.detail-badge {
    display: inline-block;
    background: var(--color-primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.detail-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.detail-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.point-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.point h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.point p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Detail Images/Cards */
.detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.detail-image img {
    max-width: 120%;
    width: 120%;
    height: auto;
    max-height: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    object-fit: contain;
}

.detail-image:hover img {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.08);
}

.image-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-surface);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.step-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Research Topics */
.research-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.topic-tag {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Graduates Slider Section */
.graduates-slider {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.graduates-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(52, 184, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(109, 214, 220, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.slider-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.slider-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    z-index: 1;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* 3D Rotating Carousel */
.wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: 300px;
}

.inner {
    --w: 180px;
    --h: 220px;
    --translateZ: calc((var(--w) + var(--h)) + 50px);
    --rotateX: -10deg;
    --perspective: 1200px;
    position: absolute;
    width: var(--w);
    height: var(--h);
    top: 20%;
    left: calc(50% - (var(--w) / 2));
    z-index: 2;
    transform-style: preserve-3d;
    transform: perspective(var(--perspective));
    animation: rotating 30s linear infinite;
    transition: animation-duration 0.5s ease;
}

/* .inner:hover {
    animation-duration: 60s;
} */

@keyframes rotating {
    from {
        transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);
    }
    to {
        transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(1turn);
    }
}

.card {
    position: absolute;
    border: 2px solid rgba(var(--color-card), 0.6);
    border-radius: 15px;
    overflow: hidden;
    inset: 0;
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(calc(var(--translateZ) + 30px)) scale(1.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(var(--color-card), 1);
}

.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0000 radial-gradient(
        circle,
        rgba(var(--color-card), 0.15) 0%,
        rgba(var(--color-card), 0.4) 60%,
        rgba(var(--color-card), 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
}

.graduate-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.graduate-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.graduate-degree {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.graduate-testimonial {
    font-size: 0.65rem;
    line-height: 1.3;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0.3rem 0;
    font-style: italic;
}

.graduate-rating {
    font-size: 0.8rem;
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    margin-top: auto;
}

/* Why Choose Section */
.why-choose {
    padding: 5rem 0;
    background: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

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

.benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1px solid rgba(52, 184, 193, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%, 
        var(--color-primary-light) 50%, 
        var(--color-accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-primary-light);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 184, 193, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(52, 184, 193, 0.1) 0%, 
        rgba(109, 214, 220, 0.1) 100%);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, 
        rgba(52, 184, 193, 0.2) 0%, 
        rgba(109, 214, 220, 0.2) 100%);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px);
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta .btn-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.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 ease;
}

.footer-links a:hover {
    color: var(--color-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.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .detail-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-content {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        min-width: auto;
        flex: 1;
        justify-content: center;
    }
    
    .nav-buttons {
        gap: 0.75rem;
        flex-shrink: 0;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
}

/* Large Tablet Styles */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .nav-content {
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 4rem 0 5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .services-overview {
        padding: 4rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .service-detail {
        padding: 4rem 0;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .detail-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .detail-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .detail-points {
        gap: 1.5rem;
    }
    
    .point {
        gap: 1rem;
    }
    
    .point-icon {
        font-size: 1.75rem;
    }
    
    .point h4 {
        font-size: 1.1rem;
    }
    
    .point p {
        font-size: 0.95rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .benefit-icon {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
    }
    
    .benefit-card p {
        font-size: 0.95rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .detail-image {
        padding: 1.5rem;
    }
    
    .detail-image img {
        max-width: 100%;
        width: 100%;
        max-height: 400px;
    }
    
    .graduates-slider {
        padding: 4rem 0;
    }
    
    .slider-container {
        height: 450px;
    }
    
    .inner {
        --w: 160px;
        --h: 200px;
        --translateZ: calc((var(--w) + var(--h)) + 40px);
        animation: rotating 25s linear infinite;
    }
    
    .inner:hover {
        animation-duration: 50s;
    }
    
    .graduate-name {
        font-size: 0.8rem;
    }
    
    .graduate-degree {
        font-size: 0.65rem;
    }
    
    .graduate-testimonial {
        font-size: 0.6rem;
    }
    
    .graduate-rating {
        font-size: 0.7rem;
    }
    
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }
    
    .cta {
        padding: 4rem 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .nav-content {
        justify-content: space-between;
    }
}

@media (max-width: 820px) and (min-width: 769px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.75rem 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .benefit-card {
        padding: 1.75rem 1.25rem;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .detail-title {
        font-size: 1.75rem;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .inner {
        --w: 150px;
        --h: 190px;
        --translateZ: calc((var(--w) + var(--h)) + 35px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand {
        gap: 0.5rem;
    }
    
    .brand svg {
        width: 28px;
        height: 28px;
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .tutoring-headline {
        font-size: 2.5rem;
        gap: 0.3rem;
    }
    
    .headline-main {
        font-size: 2.8rem;
    }
    
    .headline-accent {
        font-size: 2.5rem;
    }
    
    .headline-sub {
        font-size: 2.2rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1rem;
    }

    .stat-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .trending-tags {
        gap: 0.5rem;
    }

    .trending-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .diamond-1,
    .diamond-2,
    .diamond-3 {
        display: none;
    }

    .photo-card-1,
    .photo-card-2,
    .photo-card-3 {
        width: 60px;
        height: 60px;
    }

    .photo-card-1 {
        top: 15%;
        right: 5%;
    }

    .photo-card-2 {
        bottom: 25%;
        right: 8%;
    }

    .photo-card-3 {
        top: 55%;
        left: 5%;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .services-overview {
        padding: 4rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem 1.25rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
    }

    .service-detail {
        padding: 4rem 0;
    }
    
    .detail-content {
        gap: 2.5rem;
    }
    
    .detail-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .detail-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .detail-points {
        gap: 1.25rem;
    }
    
    .point {
        gap: 0.75rem;
    }
    
    .point-icon {
        font-size: 1.5rem;
    }
    
    .point h4 {
        font-size: 1rem;
    }
    
    .point p {
        font-size: 0.9rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .benefit-card {
        padding: 1.75rem 1.25rem;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .graduates-slider {
        padding: 4rem 0;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .inner {
        --w: 140px;
        --h: 180px;
        --translateZ: calc((var(--w) + var(--h)) + 30px);
        animation: rotating 20s linear infinite;
    }
    
    .inner:hover {
        animation-duration: 40s;
    }
    
    .graduate-name {
        font-size: 0.75rem;
    }
    
    .graduate-degree {
        font-size: 0.6rem;
    }
    
    .graduate-testimonial {
        font-size: 0.55rem;
    }
    
    .graduate-rating {
        font-size: 0.65rem;
    }
    
    .slider-title {
        font-size: 1.75rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }

    .cta {
        padding: 4rem 0;
    }
    
    .cta-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .cta-title {
        font-size: 1.75rem;
        text-align: center;
        margin: 0 auto 1rem;
    }
    
    .cta-description {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto 2rem;
        max-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .cta .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-brand-name {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .detail-image {
        padding: 1rem;
    }
    
    .detail-image img {
        max-width: 100%;
        width: 100%;
        max-height: 300px;
    }
    
    /* Ensure text doesn't overflow */
    .hero-title,
    .detail-title,
    .section-title,
    .slider-title,
    .cta-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Improve touch targets */
    .btn,
    .service-link,
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand {
        gap: 0.4rem;
    }
    
    .brand svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav-link {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero {
        padding: 2.5rem 0 3rem;
    }
    
    .tutoring-headline {
        font-size: 2rem;
        gap: 0.2rem;
    }
    
    .headline-main {
        font-size: 2.2rem;
    }
    
    .headline-accent {
        font-size: 2rem;
    }
    
    .headline-sub {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        border-radius: 25px;
    }

    .trending-tags {
        gap: 0.4rem;
    }

    .trending-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

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

    .photo-card-1,
    .photo-card-2,
    .photo-card-3 {
        width: 50px;
        height: 50px;
    }

    .photo-placeholder svg {
        width: 30px;
        height: 30px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .services-overview {
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 1.25rem 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-features {
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .service-detail {
        padding: 3rem 0;
    }
    
    .detail-content {
        gap: 2rem;
    }
    
    .detail-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .detail-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .detail-points {
        gap: 1rem;
    }
    
    .point {
        gap: 0.5rem;
    }
    
    .point-icon {
        font-size: 1.25rem;
    }
    
    .point h4 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .point p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .detail-image {
        padding: 0.5rem;
    }
    
    .detail-image img {
        max-width: 100%;
        width: 100%;
        max-height: 250px;
    }

    .graduates-slider {
        padding: 3rem 0;
    }
    
    .slider-header {
        margin-bottom: 2rem;
    }
    
    .slider-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .slider-description {
        font-size: 0.9rem;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .inner {
        --w: 120px;
        --h: 160px;
        --translateZ: calc((var(--w) + var(--h)) + 25px);
        animation: rotating 18s linear infinite;
    }
    
    .inner:hover {
        animation-duration: 35s;
    }
    
    .graduate-name {
        font-size: 0.7rem;
    }
    
    .graduate-degree {
        font-size: 0.55rem;
    }
    
    .graduate-testimonial {
        font-size: 0.5rem;
        line-height: 1.2;
    }
    
    .graduate-rating {
        font-size: 0.6rem;
    }

    .why-choose {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.5rem 1rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
    
    .benefit-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .benefit-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .cta {
        padding: 3rem 0;
    }
    
    .cta-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
    .cta-buttons {
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin: 0 auto;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-brand-name {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .brand svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
    
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1rem 0.75rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .detail-title {
        font-size: 1.4rem;
    }
    
    .slider-container {
        height: 320px;
    }
    
    .inner {
        --w: 100px;
        --h: 140px;
        --translateZ: calc((var(--w) + var(--h)) + 20px);
    }
    
    .graduate-name {
        font-size: 0.65rem;
    }
    
    .graduate-degree {
        font-size: 0.5rem;
    }
    
    .graduate-testimonial {
        font-size: 0.45rem;
    }
    
    .graduate-rating {
        font-size: 0.55rem;
    }
    
    .benefit-card {
        padding: 1.25rem 0.75rem;
    }
    
    .benefit-icon {
        font-size: 1.75rem;
    }
    
    .cta-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .cta-title {
        font-size: 1.4rem;
        text-align: center;
        margin: 0 auto 0.75rem;
    }
    
    .cta-description {
        text-align: center;
        margin: 0 auto 1.5rem;
    }
    
    .cta-buttons {
        align-items: center;
        justify-content: center;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .mobile-menu {
        padding: 1rem;
    }
    
    .mobile-nav-links {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .mobile-nav-link {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }
    
    .mobile-nav-buttons {
        max-width: 250px;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero {
        padding: 2rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-overview {
        padding: 2.5rem 0;
    }
    
    .service-detail {
        padding: 2.5rem 0;
    }
    
    .graduates-slider {
        padding: 2.5rem 0;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .why-choose {
        padding: 2.5rem 0;
    }
    
    .cta {
        padding: 2.5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon svg,
    .point-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Additional Mobile Fixes */
@media (max-width: 768px) {
    /* Ensure proper spacing */
    .hero,
    .services-overview,
    .service-detail,
    .graduates-slider,
    .why-choose,
    .cta {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Fix any potential overflow issues */
    .service-card,
    .benefit-card,
    .detail-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure buttons are touch-friendly */
    .btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix carousel on very small screens */
    .slider-container {
        overflow: hidden;
    }
    
    .wrapper {
        overflow: hidden;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .graduates-slider,
    .cta,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .service-detail {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .benefit-card {
        break-inside: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Contact Popup Styles - Innovative Design */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.1) 0%, rgba(109, 214, 220, 0.05) 50%, rgba(52, 184, 193, 0.1) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: overlayFadeIn 0.6s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px) saturate(180%);
    }
}

.popup-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(52, 184, 193, 0.2);
    position: relative;
    overflow: hidden;
    animation: popupBounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

@keyframes popupBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateX(-15deg) translateY(-100px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotateX(5deg) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg) translateY(0);
    }
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.popup-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 184, 193, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.popup-header {
    text-align: center;
    padding: 2.5rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.05) 0%, transparent 100%);
    position: relative;
}

.popup-header::before {
    content: '🎓';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.8;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 1.5rem;
}

.popup-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
}

.popup-form {
    width: 100%;
    padding: 0 2.5rem 2.5rem;
}

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

.contact-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(52, 184, 193, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(52, 184, 193, 0.1),
        0 8px 25px rgba(52, 184, 193, 0.15);
    transform: translateY(-2px);
}

.contact-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-input:focus::placeholder {
    opacity: 0.5;
    transform: translateY(-2px);
}

.popup-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.popup-form .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    min-width: 140px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.popup-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.popup-form .btn:hover::before {
    left: 100%;
}

.popup-form .btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border: none;
    box-shadow: 
        0 8px 25px rgba(52, 184, 193, 0.3),
        0 4px 12px rgba(52, 184, 193, 0.2);
}

.popup-form .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(52, 184, 193, 0.4),
        0 6px 20px rgba(52, 184, 193, 0.3);
}

.popup-form .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.popup-login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.5rem 2.5rem 0;
    border-top: 1px solid rgba(52, 184, 193, 0.1);
    position: relative;
}

.popup-login-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.popup-login-link p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.login-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.login-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.login-link:hover {
    color: var(--color-primary-dark);
    background: rgba(52, 184, 193, 0.1);
}

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

/* Responsive Design for Popup */
@media (max-width: 768px) {
    .popup-content {
        margin: 1rem;
        max-width: none;
        width: calc(100% - 2rem);
        border-radius: 20px;
    }
    
    .popup-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .popup-header::before {
        font-size: 1.5rem;
        top: 0.5rem;
    }
    
    .popup-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .popup-description {
        font-size: 0.9rem;
    }
    
    .popup-form {
        padding: 0 1.5rem 2rem;
    }
    
    .contact-input {
        padding: 1rem 1.25rem;
        border-radius: 12px;
        font-size: 0.95rem;
    }
    
    .popup-form .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .popup-form .btn {
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 12px;
        min-width: auto;
    }
    
    .popup-login-link {
        padding: 1rem 1.5rem 0;
    }
}
a{
    text-decoration: none;  
    color: inherit;
}