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

:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(25px);
}

body.dark-mode {
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #475569;
    --border-light: #64748b;
    
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.dark-mode .header {
    background: rgba(30, 41, 59, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img, .footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-medium);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(37, 99, 235, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.hero {
    min-height: 100vh;
    padding: 140px 20px 40px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 100%;
    opacity: 0.05;
    z-index: 1;
}

.code-animation {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 2;
    transform: rotate(15deg);
    margin-top: 100px;
    color: var(--text-muted);
    opacity: 0;
    animation: codeFloat 1.5s ease-out 1.5s forwards;
}

.code-line {
    margin: 20px 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: typeWriter 1s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 2s; }
.code-line:nth-child(2) { animation-delay: 2.2s; }
.code-line:nth-child(3) { animation-delay: 2.4s; }
.code-line:nth-child(4) { animation-delay: 2.6s; }

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes codeFloat {
    from {
        opacity: 0;
        transform: rotate(15deg) translateY(20px);
    }
    to {
        opacity: 0.4;
        transform: rotate(15deg) translateY(0);
    }
}

@keyframes typeWriter {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-background {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.stat-mini {
    text-align: center;
    transition: var(--transition);
}

.stat-mini:hover {
    transform: translateY(-5px);
}

.stat-number-mini {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label-mini {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    opacity: 0;
    transform: translateX(30px) scale(0.98);
    animation: imageSlideIn 0.8s ease-out 0.3s forwards;
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.about-card:hover::before {
    transform: translateX(0);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

/* About Section Responsive Design */
@media (max-width: 1200px) {
    .about-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        padding: 0 15px;
    }
    
    .about-card {
        max-width: 350px;
        padding: 35px 25px;
    }
}

@media (max-width: 992px) {
    .about {
        padding: 70px 0;
    }
    
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-card {
        max-width: 400px;
        padding: 30px 20px;
        min-height: 260px;
    }
    
    .about .section-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }
    
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 10px;
    }
    
    .about-card {
        max-width: 100%;
        padding: 30px 20px;
        min-height: 240px;
    }
    
    .about .section-header {
        margin-bottom: 40px;
    }
    
    .about .section-header h2 {
        font-size: 2rem;
    }
    
    .about .section-header p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 50px 0;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .about-card {
        max-width: 100%;
        padding: 25px 20px;
        min-height: 220px;
    }
    
    .about .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about .section-header p {
        font-size: 1rem;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .card-icon i {
        font-size: 1.8rem;
    }
    
    .about-card h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .about-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .about .section-header h2 {
        font-size: 1.6rem;
    }
    
    .about-cards {
        padding: 0 10px;
    }
    
    .about-card {
        padding: 20px 15px;
        min-height: 200px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 1.6rem;
    }
    
    .about-card h3 {
        font-size: 1.2rem;
    }
    
    .about-card p {
        font-size: 0.9rem;
    }
}

.courses {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.course-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-badge.popular {
    background: var(--gradient-secondary);
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
}

.course-syllabus ul {
    list-style: none;
    margin-bottom: 30px;
}

.course-syllabus li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.course-syllabus li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.testimonials {
  padding: 80px 0;
  background: var(--bg-light);
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  position: relative;
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 25px;
  font-style: italic;
}

.student-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.student-info span {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.95rem;
}

[data-theme="dark"] .testimonials {
  background: var(--bg-dark);
}

[data-theme="dark"] .testimonial-card {
  background: var(--card-bg-dark);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .testimonials {
    padding: 60px 0;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 20px;
  }
  
  .testimonial-card {
    padding: 30px 25px;
  }
  
  .testimonial-content p {
    font-size: 1rem;
  }
}

.testimonials {
    padding: 80px 0;
    background: var(--bg-primary);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
}

.testimonial-wrapper {
    flex: 1;
    overflow: hidden;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    text-align: center;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    border: 1px solid var(--border-color);
}

.testimonial-card.active {
    transform: translateX(0);
    opacity: 1;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.testimonial-card p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
}

.nav-arrow:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-form-container {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 80px 0 30px;
}

.dark-mode .footer {
    background: #0f172a;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-section p {
    margin-bottom: 30px;
    color: #cbd5e1;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

.dark-mode .footer-section h3 {
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #475569;
    color: #94a3b8;
}

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn {
    background: #25d366;
}

.phone-btn {
    background: var(--gradient-primary);
}

.floating-btn:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* PC devices - increase image height only */
@media (min-width: 1024px) {
    .course-image {
        height: 250px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
.nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
        padding: 30px 0;
        gap: 5px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        margin: 3px 30px;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 500;
        display: inline-block;
        width: auto;
    }
    
    .nav-link.active {
        background: rgba(37, 99, 235, 0.05);
        color: var(--primary-color);
        font-weight: 500;
        box-shadow: none;
        border: 1px solid rgba(37, 99, 235, 0.15);
        padding: 8px 16px;
        margin: 3px 30px;
    }
    
    .hero {
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix MSCIT course image sizing for mobile only */
    #mscit-course .course-image {
        height: 180px;
    }
    
    #mscit-course .course-image img {
        object-fit: contain;
        object-position: center;
        background: var(--bg-secondary);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .testimonials-slider {
        flex-direction: column;
        gap: 30px;
    }
    
    .testimonial-card {
        padding: 40px 30px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .course-content {
        padding: 25px 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-card p {
        font-size: 1.1rem;
    }
    
    .quote-icon {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

/* Best Students Section */
.best-students {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Background decorative elements */
.best-students::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.best-students::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.05));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

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

/* Section header enhancements */
.best-students .section-header {
    position: relative;
    margin-bottom: 60px;
}

.best-students .section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

/* Limit Best Students to 8 by default when toggled */
.students-grid.limited .student-card:nth-child(n+9) {
    display: none;
}

/* Decorative grid background */
.students-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.03) 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    pointer-events: none;
    z-index: 0;
}

.student-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Dark mode specific styling for student cards */
body.dark-mode .student-card {
    background: #1e293b;
    border: 1px solid #475569;
}

/* Gradient background overlay */
.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    z-index: -1;
}

/* Subtle glow effect */
.student-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    pointer-events: none;
}

/* English Course Modal */
.ec-modal { 
    position: fixed; inset: 0; display: none; z-index: 2000;
}
.ec-modal[aria-hidden="false"] { display: block; }
.ec-modal__overlay { 
    position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px);
}
.ec-modal__dialog { 
    position: relative; max-width: 480px; margin: 5vh auto; background: var(--bg-primary);
    border-radius: 16px; box-shadow: var(--shadow-heavy); overflow: hidden;
    animation: ec-pop 0.25s ease-out;
}
.ec-modal__media { line-height: 0; }
.ec-modal__media img { width: 100%; height: 190px; object-fit: cover; object-position: 50% 35%; display: block; }
.ec-modal__close { 
    position: absolute; top: 12px; right: 12px; border: none; background: rgba(0,0,0,0.05);
    color: #ffffff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; transition: var(--transition); z-index: 1;
}
.ec-modal__close:hover { background: rgba(0,0,0,0.08); transform: rotate(90deg); }
.ec-modal__header { 
    padding: 28px 28px 16px; background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(59,130,246,0.08));
}
.ec-modal__icon { 
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px;
    color: #fff; background: var(--gradient-primary); box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    font-size: 22px;
}
.ec-modal__header h3 { margin: 0; font-size: 1.35rem; color: var(--text-primary); }
.ec-modal__subtitle { margin-top: 6px; color: var(--text-secondary); font-size: 0.95rem; }
.ec-modal__body { padding: 20px 28px 28px; }
.ec-modal__highlights { 
    list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 16px;
}
.ec-modal__highlights li { 
    display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--border-color);
    border-radius: 10px; color: var(--text-secondary); font-weight: 500; background: var(--bg-secondary);
}
.ec-modal__highlights i { color: var(--success-color); }

.ec-form { display: block; }
.ec-form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.ec-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ec-field label { font-size: 0.9rem; color: var(--text-secondary); }
.ec-field input, .ec-field select, .ec-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); background: var(--bg-primary);
    color: var(--text-primary); border-radius: 10px; outline: none; transition: var(--transition);
}
.ec-field input:focus, .ec-field select:focus, .ec-field textarea:focus { 
    border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.ec-submit { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.ec-form__note { margin-top: 10px; color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }

.ec-form__message { margin-top: 14px; border-radius: 10px; padding: 12px 14px; display: none; }
.ec-form__message.show { display: flex; gap: 10px; align-items: center; }
.ec-form__message.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.ec-form__message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@keyframes ec-pop { from { opacity: 0; transform: translateY(10px) scale(0.98);} to { opacity: 1; transform: translateY(0) scale(1);} }

@media (max-width: 720px) {
    .ec-modal__dialog { margin: 5vh 14px; }
    .ec-modal__highlights { grid-template-columns: 1fr; }
    .ec-form__row { grid-template-columns: 1fr; }
}

/* Dark mode adjustments */
body.dark-mode .ec-modal__dialog { background: var(--bg-primary); }
body.dark-mode .ec-modal__highlights li { background: rgba(255,255,255,0.03); }
body.dark-mode .ec-modal__overlay { background: rgba(0,0,0,0.65); }

.student-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

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

.student-card:hover::after {
    width: 200px;
    height: 200px;
}

/* Add staggered animation for cards */
.student-card:nth-child(1) { animation-delay: 0.1s; }
.student-card:nth-child(2) { animation-delay: 0.2s; }
.student-card:nth-child(3) { animation-delay: 0.3s; }
.student-card:nth-child(4) { animation-delay: 0.4s; }
.student-card:nth-child(5) { animation-delay: 0.5s; }
.student-card:nth-child(6) { animation-delay: 0.6s; }
.student-card:nth-child(7) { animation-delay: 0.7s; }
.student-card:nth-child(8) { animation-delay: 0.8s; }
.student-card:nth-child(9) { animation-delay: 0.9s; }
.student-card:nth-child(10) { animation-delay: 1.0s; }
.student-card:nth-child(11) { animation-delay: 1.1s; }
.student-card:nth-child(12) { animation-delay: 1.2s; }

.student-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #475569; /* Dark border */
    background: #1e293b; /* Ensure background is dark */
    transition: var(--transition);
    position: relative;
}

.student-card:hover .student-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
    display: block;
}

.student-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary); /* Use theme text color */
    margin-bottom: 6px;
    transition: var(--transition);
    line-height: 1.3;
}

/* Dark mode text styling */
body.dark-mode .student-info h3 {
    color: #f8fafc; /* White text for dark mode */
}

.student-card:hover .student-info h3 {
    color: var(--primary-color);
}

.achievement {
    color: var(--text-secondary); /* Use theme text color */
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

/* Dark mode achievement text */
body.dark-mode .achievement {
    color: #cbd5e1; /* Light gray text for dark mode */
}

/* Responsive Design for Best Students */
@media (max-width: 768px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid for mobile */
        gap: 20px;
        max-width: 100%;
    }
    
    .student-card {
        padding: 15px;
        min-width: 0; /* Allow cards to shrink */
    }
    
    .student-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .student-info h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .achievement {
        font-size: 0.8rem;
    }
}

/* Tablets: 3 per row */
@media (max-width: 1024px) and (min-width: 769px) {
    .students-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2x2 grid even on smaller mobile */
        gap: 15px;
    }
    
    .student-card {
        padding: 12px;
    }
    
    .student-image {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }
    
    .student-info h3 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .achievement {
        font-size: 0.75rem;
    }
    
    .best-students {
        padding: 60px 0;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .course-card {
        margin: 0 10px;
    }
    
    .contact-form-container {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        top: 70px;
    }
}

/* Companies Section Styles */
.companies-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Dark mode styles for companies section */
body.dark-mode .companies-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* Light mode styles for companies section */
body.light-mode .companies-section {
    background: var(--bg-secondary);
}

.companies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Light mode background overlay */
body.light-mode .companies-section::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
}

.companies-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

/* Light mode title */
body.light-mode .companies-title {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Marquee Container */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px 10px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Light mode marquee container */
body.light-mode .marquee-container {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: marqueeScroll 25s linear infinite;
    gap: 80px;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: max-content;
    min-width: 200%;
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.company-item {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: white;
    position: relative;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    user-select: none;
    white-space: nowrap;
    display: inline-block;
    min-width: fit-content;
}

/* Light mode company items */
body.light-mode .company-item {
    color: var(--text-primary);
}

.company-item:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Hover effect for the entire marquee */
.marquee-container:hover {
    transform: scale(1.02);
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.3);
}

body.light-mode .marquee-container:hover {
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* Responsive Design for Companies Section */
@media (max-width: 1024px) {
    .companies-section {
        padding: 70px 0;
    }
    
    .companies-title {
        font-size: 2.6rem;
        margin-bottom: 50px;
    }
    
    .company-item {
        font-size: 2.2rem;
        letter-spacing: 2.5px;
        padding: 8px 18px;
    }
    
    .marquee-content {
        gap: 70px;
    }
    
    .marquee-container {
        padding: 18px 0;
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .companies-section {
        padding: 60px 0;
    }
    
    .companies-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .company-item {
        font-size: 1.8rem;
        letter-spacing: 2px;
        padding: 8px 16px;
    }
    
    .marquee-content {
        gap: 60px;
        animation: marqueeScroll 25s linear infinite;
    }
    
    .marquee-container {
        padding: 16px 0;
        border-radius: 14px;
        margin: 0 10px;
    }
    
    .marquee-container:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .companies-section {
        padding: 50px 0;
    }
    
    .companies-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding: 0 15px;
        line-height: 1.2;
    }
    
    .company-item {
        font-size: 1.4rem;
        letter-spacing: 1px;
        padding: 6px 12px;
    }
    
    .marquee-content {
        gap: 50px;
        animation: marqueeScroll 30s linear infinite;
    }
    
    .marquee-container {
        padding: 14px 0;
        border-radius: 12px;
        margin: 0 5px;
    }
    
    .marquee-container:hover {
        transform: none;
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.25);
    }
    
    body.light-mode .marquee-container:hover {
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 360px) {
    .companies-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .company-item {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        padding: 5px 10px;
    }
    
    .marquee-content {
        gap: 40px;
        animation: marqueeScroll 35s linear infinite;
    }
    
    .marquee-container {
        padding: 12px 0;
        border-radius: 10px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .company-item {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .companies-section {
        padding: 40px 0;
    }
    
    .companies-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .marquee-container {
        padding: 12px 0;
    }
    
    .company-item {
        font-size: 1.6rem;
    }
}

/* Team Section */
.team {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.team .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.team .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  position: relative;
}

.team .section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.team .section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-member {
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .team-member {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

[data-theme="dark"] .team-member:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.member-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.9), rgba(0, 123, 255, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.team-member:hover .member-overlay {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 15px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.team-member:hover .social-links {
  transform: translateY(0);
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.member-info {
  padding: 25px 20px;
  text-align: center;
}

.member-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.member-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

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

.team-member[data-aos="fade-up"] {
  animation: fadeInUp 0.6s ease forwards;
}

/* Team Responsive Design */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 15px;
  }
}

@media (max-width: 992px) {
  .team {
    padding: 80px 0;
  }
  
  .team .section-header h2 {
    font-size: 2.2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .team {
    padding: 60px 0;
  }
  
  .team .section-header {
    margin-bottom: 40px;
  }
  
  .team .section-header h2 {
    font-size: 2rem;
  }
  
  .team .section-header p {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  
  .team-member {
    margin: 0 auto;
    max-width: 280px;
  }
}

@media (max-width: 576px) {
  .team {
    padding: 50px 0;
  }
  
  .team .section-header h2 {
    font-size: 1.8rem;
  }
  
  .team .section-header p {
    font-size: 0.9rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }
  
  .member-info {
    padding: 20px 15px;
  }
  
  .member-info h3 {
    font-size: 1.2rem;
  }
  
  .member-info p {
    font-size: 0.9rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .team .section-header h2 {
    font-size: 1.6rem;
  }
  
  .team-grid {
    padding: 0 10px;
  }
  
  .team-member {
    max-width: 260px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }
    
    .marquee-container:hover .marquee-content {
        animation: none;
    }
    
    .company-item:hover {
        transform: none;
    }
    
    .marquee-container:hover {
        transform: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }
    
    .marquee-container:hover .marquee-content {
        animation: none;
    }
    
    .company-item:hover {
        transform: none;
    }
    
    .marquee-container:hover {
        transform: none;
    }
}
