
/* Custom styles for Global Executive Educator Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 40px rgba(102, 126, 234, 0.4); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease forwards;
}
/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.gradient-text:hover::after {
    width: 100%;
}

/* Custom card hover effects */
.hover-lift {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.hover-lift:hover::before {
    left: 100%;
}
/* Tab button active state */
.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Background patterns */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: shimmer 20s linear infinite;
}

/* Enhanced section backgrounds */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.about-section {
    position: relative;
    overflow: hidden;
}

.expertise-section {
    position: relative;
    overflow: hidden;
}

.services-section {
    position: relative;
    overflow: hidden;
}

.lectures-section {
    position: relative;
    overflow: hidden;
}

.programs-section {
    position: relative;
    overflow: hidden;
}

.expat-section {
    position: relative;
    overflow: hidden;
}

.contact-section {
    position: relative;
    overflow: hidden;
}

/* Enhanced card animations */
.expertise-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.expertise-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent,
        rgba(118, 75, 162, 0.1),
        transparent
    );
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lecture-card {
    position: relative;
    overflow: hidden;
}

.lecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f59e0b, #ef4444);
    background-size: 300% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.program-card {
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Enhanced buttons */
.cta-primary,
.cta-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-primary::before,
.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-primary:hover::before,
.cta-secondary:hover::before {
    left: 100%;
}

/* Counter animation */
.counter {
    position: relative;
}

.counter::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -10px;
    font-size: 0.8em;
    color: inherit;
}

/* Feature badges */
.feature-badge {
    position: relative;
    overflow: hidden;
}

.feature-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-badge:hover::before {
    transform: translateX(100%);
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #f1f1f1, #e5e7eb);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}
/* Modal animations */
.modal-enter {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Toast notification styles */
.toast-enter {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Card gradient borders */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}
/* Loading animations */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced hover states */
.hover-glow:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Tab content animations */
.tab-content {
    position: relative;
    overflow: hidden;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f59e0b, #ef4444);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

/* Enhanced quotes */
.quote-text {
    position: relative;
    padding-left: 1rem;
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3em;
    color: rgba(102, 126, 234, 0.2);
    font-family: Georgia, serif;
}

/* Stats card enhancements */
.stats-card {
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-card:hover {
    backdrop-filter: blur(25px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Contact info enhancements */
.contact-info {
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section transitions */
section {
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}
/* Hover effects for interactive elements */
.interactive-element {
    position: relative;
    overflow: hidden;
}

.interactive-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.interactive-element:hover::after {
    width: 300px;
    height: 300px;
}

/* Focus styles for accessibility */
.focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
/* Profile image floating style */
.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
}

.floated-image {
    float: right;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    shape-outside: circle(60%);
}

@media (max-width: 640px) {
    .floated-image {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
        width: 100px;
        height: 100px;
        shape-outside: none;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .floated-image {
        width: 140px;
        height: 140px;
        shape-outside: circle(70%);
    }
}

@media (min-width: 769px) {
    .floated-image {
        width: 180px;
        height: 180px;
        shape-outside: circle(90%);
    }
}

/* About content section - block layout */
.about-content .block {
    display: block;
    overflow: hidden;
}

.about-content .block::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive floating image for about section */
.about-content .float-right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .about-content .float-right {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
    }
}

/* About section decorative elements alignment */
.about-content {
    position: relative;
}

.about-content .absolute {
    position: absolute;
    z-index: 0;
}

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

/* Mobile-specific fixes for about section */
@media (max-width: 640px) {
    .about-content .absolute.top-4.right-4 {
        top: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .about-content .absolute.bottom-4.left-4 {
        bottom: 1rem;
        left: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .about-content .block .float-right {
        position: relative;
        z-index: 2;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .about-content .absolute.top-4.right-4 {
        width: 4rem;
        height: 4rem;
        top: 1rem;
        right: 1rem;
    }
    
    .about-content .absolute.bottom-4.left-4 {
        width: 3rem;
        height: 3rem;
        bottom: 1rem;
        left: 1rem;
    }
}
/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-friendly {
        background: white !important;
        color: black !important;
    }
    .floated-image {
        display: block;
        margin: 0 auto 1.5rem auto;
        float: none;
    }
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 640px) {
    /* Container adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography scaling */
    h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    /* Card spacing adjustments */
    .group {
        margin-bottom: 1rem;
    }
    
    /* Button sizing */
    .px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Modal adjustments */
    .max-w-md {
        max-width: 90%;
        margin: 1rem;
    }
    
    /* Grid adjustments for mobile */
    .grid {
        gap: 1rem;
    }
    
    /* Form inputs */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Service cards */
    .bg-white.rounded-2xl {
        padding: 1.5rem;
    }
    
    /* Tab content */
    .tab-content {
        margin-bottom: 2rem;
    }
    
    /* Lecture cards */
    .bg-white.rounded-2xl.overflow-hidden {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    /* Tablet adjustments */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for touch */
    .gap-4 {
        gap: 1rem;
    }
    
    .gap-6 {
        gap: 1.5rem;
    }
    
    .gap-8 {
        gap: 2rem;
    }
    
    /* Improved readability */
    .text-gray-600 {
        line-height: 1.6;
    }
    
    /* Better modal experience on mobile */
    #enquiryModal {
        padding: 1rem;
    }
    
    #enquiryModal .bg-white {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Smooth transitions for all screen sizes */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Better mobile navigation */
@media (max-width: 768px) {
    .mobile-menu {
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .mobile-menu-list {
        padding: 1rem;
    }
    
    .mobile-menu-list li {
        margin-bottom: 0.5rem;
    }
}

/* Responsive spacing classes */
.section-padding {
    padding: 3rem 0;
}

@media (max-width: 640px) {
    .section-padding {
        padding: 2rem 0;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 5rem 0;
    }
}
