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

:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6a7c92;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --logo-size: 56px; /* Logo fits within navbar */
}

.dark-mode {
    --text-color: #e2e8f0;
    --bg-color: #1a202c;
    --card-bg: #2d3748;
    --border-color: #4a5568;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

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

/* Navigation */
.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(var(--logo-size) + 14px);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo {
    height: var(--logo-size);
    width: var(--logo-size);
    object-fit: contain;
    transition: var(--transition);
    display: block;
}

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


.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.1);
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0) scale(0.95);
    background-color: rgba(74, 108, 247, 0.2);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 80%;
}

/* Ripple Effect for Navigation Links */
.nav-link {
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(74, 108, 247, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Theme Toggle Switch */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.switch:active {
  transform: scale(0.98);
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #73C0FC;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
}

.slider:hover {
  box-shadow: 0 4px 12px rgba(115, 192, 252, 0.4);
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  left: 2px;
  bottom: 2px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sun svg {
  position: absolute;
  top: 6px;
  left: 36px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.moon svg {
  fill: #73C0FC;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.sun svg {
  animation: rotate 15s linear infinite;
}

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

.moon svg {
  animation: tilt 5s linear infinite;
}

@keyframes tilt {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.input:checked + .slider {
  background-color: #183153;
}

.input:focus + .slider {
  box-shadow: 0 0 1px #183153;
}

.input:checked + .slider:before {
  transform: translateX(30px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover {
    background-color: rgba(74, 108, 247, 0.1);
    transform: scale(1.05);
}

.hamburger:active {
    transform: scale(0.95);
    background-color: rgba(74, 108, 247, 0.2);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: var(--transition);
}

.dark-mode .hero {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

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

.profile-section {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.profile-image-container {
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333333; /* Dark outline for light mode */
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
}

.dark-mode .profile-image {
    border: 4px solid #ffffff; /* White outline for dark mode */
}

.profile-info {
    flex: 2;
    min-width: 300px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: var(--transition);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
    transition: var(--transition);
}

.college-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.college-link:hover {
    text-decoration: underline;
}

.motto {
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    color: var(--secondary-color);
    transition: var(--transition);
}

.interactive-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.interactive-btn {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.interactive-btn:hover {
    background-color: #3a56d5;
    transform: translateY(-2px);
}

/* Main Content Sections */
.main-content {
    padding: 60px 0;
}

.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.dark-mode .section:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
    transition: var(--transition);
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.class-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.class-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.class-card p {
    color: var(--secondary-color);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.9), rgba(106, 124, 146, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay .view-details {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 30px;
    transition: var(--transition);
}

.project-overlay .view-details:hover {
    background-color: white;
    color: var(--primary-color);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    transition: var(--transition);
}

.project-description {
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tech .tech-tag {
    background: linear-gradient(135deg, var(--primary-color), #5a7cfa);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-tech .tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.work-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

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

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.work-card:hover .work-image {
    transform: scale(1.05);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-title {
    padding: 20px 20px 10px;
    color: var(--text-color);
    transition: var(--transition);
    margin: 0;
}

.work-description {
    padding: 0 20px 20px;
    color: var(--secondary-color);
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 2vh auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-image-section {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.modal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.prev-nav {
    left: 20px;
}

.next-nav {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}


.modal-info-section {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    overflow-y: auto;
    min-height: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #e1e1e1);
    gap: 12px;
    flex-shrink: 0;
}

.project-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.project-info {
    flex: 1;
}

.project-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.project-author {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.modal-content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    min-height: 0;
}

.project-description p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: var(--text-color);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}

.features-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-actions {
    border-top: 1px solid var(--border-color, #e1e1e1);
    padding: 20px 30px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
}

.modal-action-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: center;
    flex: 1;
}

.demo-link {
    background-color: var(--primary-color);
    color: white;
}

.demo-link:hover {
    background-color: #3a56d5;
    transform: translateY(-1px);
}

.code-link {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.code-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Anime Section */
.anime-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    min-width: 120px;
}

.sort-btn:hover, .sort-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px auto;
    max-width: 1400px;
    justify-content: center;
    padding: 0 20px;
}

.anime-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    height: 420px;
    display: flex;
    flex-direction: column;
}

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

.anime-link {
    text-decoration: none;
    color: inherit;
}

.anime-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    flex-shrink: 0;
}

.anime-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-card:hover .anime-image {
    transform: scale(1.05);
}

.anime-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.anime-title {
    padding: 15px;
    text-align: center;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--secondary-color);
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--secondary-color);
    font-style: italic;
}

/* Specializations Carousel */
.specializations-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    position: relative;
}

.specializations-carousel {
    width: 400px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.spec-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    border-radius: 15px;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    z-index: 1;
}

.spec-card.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0s;
    z-index: 2;
}

.spec-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spec-info {
    text-align: center;
}

.spec-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    transition: var(--transition);
}

.spec-type {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.spec-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-level {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.spec-level.advanced {
    background-color: #48bb78;
    color: white;
}

.spec-level.intermediate {
    background-color: #ed8936;
    color: white;
}

.spec-level.beginner {
    background-color: #4299e1;
    color: white;
}

.spec-experience {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-btn:hover {
    background-color: #3a56d5;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.spec-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-color);
}

.indicator:hover {
    background-color: var(--secondary-color);
}

/* Contact Section */

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

.error-message {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.success-message {
    color: #38a169;
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #3a56d5;
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--secondary-color);
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.1);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Social links in hero section */
.profile-info .social-links {
    margin-top: 20px;
    justify-content: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --logo-size: 72px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        height: 90px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .classes-grid, .works-grid, .anime-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 98%;
        margin: 1vh auto;
        max-height: 98vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        flex: 1;
        min-height: 0;
    }
    
    .modal-image-section {
        height: 40vh;
        min-height: 250px;
    }
    
    .modal-actions {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: stretch;
    }
    
    .modal-action-buttons {
        justify-content: center;
    }
    
    .modal-view-toggle {
        justify-content: center;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
        min-width: unset;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
    height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color, #e1e1e1);
}

.btn-secondary:hover {
    background: var(--hover-bg, #f5f5f5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Modal Button Specific Styles */
#modal-demo-btn, #modal-code-btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#modal-demo-btn:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#modal-code-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Tech Tags Container */
.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tags-container .tech-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Modal Video Styles */
.modal-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.modal-view-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toggle-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color, #e1e1e1);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--hover-bg, #f5f5f5);
    transform: translateY(-1px);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Image Navigation Styles */
.image-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}


.nav-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.image-navigation .prev-arrow {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}

.image-navigation .next-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}

.image-navigation .prev-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.image-navigation .next-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.image-navigation .image-counter {
    pointer-events: auto;
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* Additional responsive styles */
@media (max-width: 768px) {
    .project-links {
        flex-direction: column;
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    .interactive-buttons {
        flex-direction: column;
    }
    
    .specializations-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 100%;
        padding: 0 20px; /* Reduced padding since buttons are now at bottom */
    }
    
    .specializations-carousel {
        width: 100%;
        max-width: 320px;
        height: 280px;
        position: relative;
    }
    
    .specializations-carousel .nav-btn {
        position: absolute;
        bottom: -60px; /* Position at bottom */
        width: 45px;
        height: 45px;
        border-radius: 50%;
        font-size: 1.2rem;
        background: var(--primary-color);
        color: white;
        border: none;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
        transition: all 0.3s ease;
    }
    
    .specializations-carousel .nav-btn.prev-btn {
        left: calc(50% - 60px); /* Position to the left of center */
    }
    
    .specializations-carousel .nav-btn.next-btn {
        right: calc(50% - 60px); /* Position to the right of center */
    }
    
    .specializations-carousel .nav-btn:hover {
        background: #3a56d5;
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(74, 108, 247, 0.4);
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .modal-view-toggle {
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    :root {
        --logo-size: 105px; /* Larger logo for better visibility on small phones */
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .anime-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .specializations-carousel {
        width: 100%;
        max-width: 300px;
        height: 280px;
    }
    
    .spec-icon {
        width: 60px;
        height: 60px;
    }
    
    .spec-title {
        font-size: 1.5rem;
    }
    
    .specializations-container {
        padding: 0 20px 60px 20px; /* Added bottom padding for buttons */
        gap: 15px;
    }
    
    .specializations-carousel {
        max-width: 280px;
    }
    
    .specializations-carousel .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .specializations-carousel .nav-btn.prev-btn {
        left: calc(50% - 55px); /* Position to the left of center */
    }
    
    .specializations-carousel .nav-btn.next-btn {
        right: calc(50% - 55px); /* Position to the right of center */
    }
    
    .specializations-carousel .nav-btn:hover {
        transform: scale(1.1);
    }
}