/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Theme Colors */
:root {
    --primary-color: #3498db;
    --primary-color-rgb: 52, 152, 219;
    --secondary-color: #2c3e50;
    --secondary-color-rgb: 44, 62, 80;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --surface-color-rgb: 255, 255, 255;
    --text-primary: #2c3e50;
    --text-primary-rgb: 44, 62, 80;
    --text-secondary: #666666;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #dddddd;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #64b5f6;
    --primary-color-rgb: 100, 181, 246;
    --secondary-color: #90caf9;
    --secondary-color-rgb: 144, 202, 249;
    --background-color: #1a1a1a;
    --surface-color: #2d2d2d;
    --surface-color-rgb: 45, 45, 45;
    --text-primary: #ffffff;
    --text-primary-rgb: 255, 255, 255;
    --text-secondary: #b3b3b3;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #404040;
    --card-bg: #2d2d2d;
}

/* Apply theme colors */
body {
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(var(--surface-color-rgb), 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-right: 2rem;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Base section styles */
section {
    position: relative;
    padding: 80px 0;
    margin: 0;
    overflow: hidden;
    background: var(--background-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

section:hover {
    transform: scale(1.002);
    box-shadow: 0 10px 30px rgba(var(--primary-color-rgb), 0.1);
}

/* Hero section specific */
.hero {
    min-height: 100vh;
    padding: 120px 5% 0;
    margin: 0;
    display: flex;
    align-items: center;
    background: var(--background-color);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.typing-text {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

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

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

.cta-button.secondary i {
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button.secondary:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.cta-button.secondary:hover i {
    transform: translateY(-2px);
}

/* Dark mode adjustments */
[data-theme="dark"] .cta-button.secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .cta-button.secondary:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hero-image img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--surface-color);
    box-shadow: 0 0 25px var(--shadow-color);
    animation: float 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image img:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.3);
}

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

/* About Section */
.about {
    padding: 120px 10% 100px;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 20%, 
        rgba(var(--primary-color-rgb), 0.03) 40%,
        transparent 60%
    );
    animation: gradientMove 15s linear infinite;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(var(--primary-color-rgb), 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 1;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.photo-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(var(--primary-color-rgb), 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-image:hover::after {
    opacity: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(var(--primary-color-rgb), 0.2),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.3);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-image:hover img {
    transform: scale(1.1) rotate(3deg);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 1s ease forwards 0.5s;
}

.about-text h3 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.about-text h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.about-text p:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary-color);
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        gap: 3rem;
    }
    
    .about-text h3 {
        font-size: 2.2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text p {
        text-align: left;
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 80px 5% 60px;
    }
    
    .about-text h3 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        padding-left: 1rem;
    }
}

/* Experience Section */
.experience {
    padding: 6rem 10%;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.experience-card {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.experience-description {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.2);
}

.experience-card:hover .experience-description {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--secondary-color-rgb), 0.3);
}

.experience-card:nth-child(1) { animation-delay: 0.1s; }
.experience-card:nth-child(2) { animation-delay: 0.2s; }
.experience-card:nth-child(3) { animation-delay: 0.3s; }
.experience-card:nth-child(4) { animation-delay: 0.4s; }
.experience-card:nth-child(5) { animation-delay: 0.5s; }

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(var(--primary-color-rgb), 0.1),
        rgba(var(--secondary-color-rgb), 0.1)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.experience-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.experience-icon i {
    font-size: 1.8rem;
    color: white;
    transition: all 0.4s ease;
}

.experience-card:hover .experience-icon {
    transform: scale(1.1) rotate(360deg);
    background: var(--secondary-color);
}

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

.experience-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.experience-card:hover .experience-content h3 {
    color: var(--primary-color);
}

.company {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.experience-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.experience-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.experience-card:hover .experience-details li {
    color: var(--text-primary);
    transform: translateX(5px);
}

.experience-card:hover .experience-details li::before {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .experience-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .experience-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .experience-icon {
        width: 50px;
        height: 50px;
    }

    .experience-icon i {
        font-size: 1.5rem;
    }

    .experience-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .experience {
        padding: 4rem 5%;
    }

    .experience-card {
        padding: 1.2rem;
    }

    .experience-icon {
        width: 45px;
        height: 45px;
    }

    .experience-icon i {
        font-size: 1.3rem;
    }

    .experience-content h3 {
        font-size: 1.2rem;
    }

    .experience-details li {
        font-size: 0.9rem;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .experience-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .experience-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

[data-theme="dark"] .experience-details li {
    color: var(--text-secondary);
}

[data-theme="dark"] .experience-card:hover .experience-details li {
    color: var(--text-primary);
}

/* Certifications Section */
.certifications {
    padding: 6rem 10%;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-card {
    background: var(--surface-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    border: 1px solid var(--border-color);
}

.certification-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.certification-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(1) contrast(1.1);
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.certification-card:hover .certification-image img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.certification-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
}

.certification-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.certification-content .issuer {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certification-content .date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.view-certificate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
}

.view-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

@media (max-width: 1200px) {
    .certifications-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .certification-image {
        height: 180px;
        padding: 1.25rem;
    }
}

@media (max-width: 992px) {
    .certifications-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .certification-image {
        height: 170px;
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .certifications-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .certification-image {
        height: 160px;
        padding: 1rem;
    }
    
    .certification-content {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .certifications-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .certification-image {
        height: 180px;
        padding: 1.5rem;
    }
}

@media (max-width: 400px) {
    .certification-image {
        height: 150px;
        padding: 1rem;
    }
    
    .certification-content {
        padding: 1rem;
    }
}

/* Skills Section */
.skills {
    padding: 6rem 10%;
    background: var(--surface-color);
    margin-top: 2rem;
}

.skills h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--surface-color);
    color: var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.tab-btn:hover {
    transform: translateY(-2px);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.skills-content {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

#all .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

#all .skill-card {
    padding: 1.5rem;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }
.skill-card:nth-child(10) { animation-delay: 1s; }
.skill-card:nth-child(11) { animation-delay: 1.1s; }
.skill-card:nth-child(12) { animation-delay: 1.2s; }
.skill-card:nth-child(13) { animation-delay: 1.3s; }
.skill-card:nth-child(14) { animation-delay: 1.4s; }
.skill-card:nth-child(15) { animation-delay: 1.5s; }
.skill-card:nth-child(16) { animation-delay: 1.6s; }

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

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(var(--primary-rgb), 0.1));
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i,
.skill-card .skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
}

.skill-card:hover i,
.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-card img.skill-icon {
    filter: brightness(1) contrast(1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .skill-card img.skill-icon {
    filter: brightness(1.2) contrast(1.2);
}

.skill-card:hover img.skill-icon {
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 8px rgba(var(--primary-color-rgb), 0.3));
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.skill-card.animate .progress {
    transform: translateX(0);
}

/* Projects Section */
.projects {
    padding: 6rem 10%;
    background: var(--surface-color);
    margin-top: 2rem;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(var(--primary-color-rgb), 0.1),
        rgba(var(--secondary-color-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.2);
}

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

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-primary);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.project-card p {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-grow: 1;
}

.project-card:hover p {
    color: var(--text-primary);
}

.project-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding: 1.5rem;
    margin-top: auto;
}

.project-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
    box-shadow: 0 3px 10px var(--shadow-color);
    text-decoration: none;
}

.project-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        transparent,
        rgba(var(--primary-color-rgb), 0.1),
        transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover::after {
    transform: translateX(100%);
}

/* Contact Section */
.contact {
    padding: 6rem 10%;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(50px);
    opacity: 0;
    animation: slideUpFade 1s ease forwards;
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-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: 0.5s;
    z-index: -1;
}

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

/* Coding Profiles Section */
.coding-profiles {
    padding: 100px 0;
    background: var(--surface-color);
}

.profiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-card {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.profile-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.profile-icon i,
.profile-icon .platform-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    color: var(--primary-color);
    border-radius: 50%;
}

.profile-icon i {
    font-size: 2.5rem;
    width: 60%;
    height: 60%;
}

.profile-icon .platform-logo {
    padding: 12px;
    filter: brightness(1) contrast(1);
}

.profile-card:hover .profile-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(var(--primary-color-rgb), 0.15);
}

.profile-card:hover .profile-icon i,
.profile-card:hover .profile-icon .platform-logo {
    transform: scale(1.1);
}

[data-theme="dark"] .profile-icon .platform-logo {
    filter: brightness(1.2) contrast(1.2);
}

.profile-card:hover .profile-icon .platform-logo {
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 8px rgba(var(--primary-color-rgb), 0.3));
}

/* Remove any specific platform styles */
.profile-card.github .profile-icon,
.profile-card.leetcode .profile-icon,
.profile-card.codechef .profile-icon,
.profile-card.hackerrank .profile-icon,
.profile-card.geeksforgeeks .profile-icon {
    background: rgba(var(--primary-color-rgb), 0.1);
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(var(--primary-color-rgb), 0.1);
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat i {
    color: var(--primary-color);
}

.profile-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Remove all GeeksForGeeks specific styles */
/* .profile-card.geeksforgeeks,
.profile-card.geeksforgeeks .profile-icon,
.profile-card.geeksforgeeks h3,
.profile-card.geeksforgeeks .profile-stats,
.profile-card.geeksforgeeks .profile-link {
    /* Remove specific styles */
/* } */ 

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.profile-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.profile-card:hover h3::after {
    width: 100%;
}

.profile-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
    font-weight: 400;
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.profile-card p:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary-color);
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .profiles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 3%;
    }
    
    .profile-card h3 {
        font-size: 2.2rem;
    }
    
    .profile-card p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .profiles-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-icon {
        width: 70px;
        height: 70px;
    }
    
    .profile-card h3 {
        font-size: 1.3rem;
    }
    
    .stat {
        font-size: 0.9rem;
    }
    
    .profile-icon .platform-logo {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .profiles-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-icon {
        width: 60px;
        height: 60px;
    }
    
    .profile-icon .platform-logo {
        padding: 10px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    margin-left: 1rem;
}

#toggle_checkbox {
    display: none;
}

.theme-toggle label {
    display: block;
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #77b5fe;
    border-radius: 26px;
    cursor: pointer;
    transition: 0.3s ease background-color;
    overflow: hidden;
}

#star {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 16px;
    height: 16px;
    background-color: #fafd0f;
    transform: scale(1);
    border-radius: 50%;
    transition: 0.3s ease top, 0.3s ease left, 0.3s ease transform, 0.3s ease background-color;
    z-index: 1;
}

#star-1 {
    position: relative;
}

#star-2 {
    position: absolute;
    transform: rotateZ(36deg);
}

.star {
    top: 0;
    left: -3px;
    font-size: 24px;
    line-height: 12px;
    color: #fafd0f;
    transition: 0.3s ease color;
}

#moon {
    position: absolute;
    bottom: -24px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s ease bottom;
}

#moon:before {
    content: "";
    position: absolute;
    top: -6px;
    left: -8px;
    width: 18px;
    height: 18px;
    background-color: #03a9f4;
    border-radius: 50%;
    transition: 0.3s ease background-color;
}

#toggle_checkbox:checked + label {
    background-color: #000;
}

#toggle_checkbox:checked + label #star {
    top: 3px;
    left: 28px;
    transform: scale(0.3);
    background-color: yellow;
}

#toggle_checkbox:checked + label .star {
    color: yellow;
}

#toggle_checkbox:checked + label #moon {
    bottom: 4px;
}

#toggle_checkbox:checked + label #moon:before {
    background-color: #000;
}

/* Responsive Toggle Button */
@media (max-width: 768px) {
    .theme-toggle label {
        width: 46px;
        height: 24px;
    }

    #star {
        width: 14px;
        height: 14px;
        top: 5px;
        left: 5px;
    }

    .star {
        font-size: 22px;
        line-height: 11px;
    }

    #moon {
        width: 16px;
        height: 16px;
        right: 4px;
    }

    #moon:before {
        width: 16px;
        height: 16px;
        top: -5px;
        left: -7px;
    }

    #toggle_checkbox:checked + label #star {
        left: 26px;
    }
}

@media (max-width: 480px) {
    .theme-toggle label {
        width: 44px;
        height: 22px;
    }

    #star {
        width: 12px;
        height: 12px;
        top: 5px;
        left: 5px;
    }

    .star {
        font-size: 20px;
        line-height: 10px;
    }

    #moon {
        width: 14px;
        height: 14px;
        right: 4px;
    }

    #moon:before {
        width: 14px;
        height: 14px;
        top: -4px;
        left: -6px;
    }

    #toggle_checkbox:checked + label #star {
        left: 24px;
    }
}

/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary-color) 100%);
    color: var(--surface-color);
    padding: 4rem 5% 3rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 30%);
    animation: footerGlow 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes footerGlow {
    0% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.5) rotate(180deg); }
    100% { opacity: 0.3; transform: scale(1) rotate(360deg); }
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-section:nth-child(2) { animation-delay: 0.3s; }
.footer-section:nth-child(3) { animation-delay: 0.6s; }

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h3::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gradientMove 3s linear infinite;
}

.footer-section:hover h3::before {
    transform: scaleX(1);
}

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

.footer-links li {
    margin-bottom: 1rem;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInRight 0.5s ease forwards;
}

.footer-links li:nth-child(2) { animation-delay: 0.2s; }
.footer-links li:nth-child(3) { animation-delay: 0.4s; }
.footer-links li:nth-child(4) { animation-delay: 0.6s; }
.footer-links li:nth-child(5) { animation-delay: 0.8s; }

.footer-links a {
    color: var(--surface-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0);
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.2),
        rgba(var(--secondary-color-rgb), 0.2)
    );
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-links a:hover::before {
    transform: translateX(0);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-links i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-links a:hover i {
    transform: rotate(360deg) scale(1.2);
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--surface-color);
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-decoration: none;
}

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

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

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color),
        transparent
    );
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { transform: translateX(-33.33%); }
    100% { transform: translateX(0); }
}

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

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

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 5% 2rem;
    }

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

    .footer-section {
        text-align: center;
        padding: 15px;
    }

    .footer-section h3::before {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
    }

    .footer-section:hover h3::before {
        transform: translateX(-50%) scaleX(1);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        justify-content: center;
        width: 100%;
    }

    .footer-links a:hover {
        transform: translateY(-5px);
    }

    .social-links {
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 5% 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* New Attractive Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .nav-links a:hover {
        background: rgba(var(--primary-color-rgb), 0.1);
        border-radius: 5px;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 5rem;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1.4rem;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
    }

    .about,
    .skills,
    .projects,
    .contact {
        padding: 4rem 5%;
        margin-top: 1rem;
    }

    .education-timeline::before {
        left: 30px;
    }

    .education-card {
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }

    .education-card:nth-child(odd) {
        text-align: left;
    }

    .education-card:nth-child(odd) .education-icon {
        left: 5px;
        right: auto;
    }

    .education-card:nth-child(odd) .education-content::before {
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--surface-color) transparent transparent;
        right: auto;
        left: -10px;
    }

    .skills-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        width: calc(50% - 0.5rem);
    }

    .skill-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    #all .skills-grid {
        grid-template-columns: 1fr;
    }

    .education-timeline {
        padding: 1rem 0;
    }

    .education-card {
        padding-left: 60px;
    }

    .education-content {
        padding: 1rem;
    }

    .tab-btn {
        width: 100%;
    }
}

/* Navbar Dark Mode Fix */
[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Education Section */
.education {
    padding: 6rem 10%;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.education h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.education-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent,
        var(--primary-color),
        transparent
    );
    opacity: 0.3;
}

.education-card {
    position: relative;
    width: calc(50% - 30px);
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    transform: translateY(0);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Left side cards */
.education-card:nth-child(odd) {
    margin-left: auto;
    margin-right: 30px;
    text-align: right;
}

/* Right side cards */
.education-card:nth-child(even) {
    margin-left: 30px;
    margin-right: auto;
    text-align: left;
}

.education-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 10px rgba(var(--primary-color-rgb), 0.3);
}

/* Position icons for left and right cards */
.education-card:nth-child(odd) .education-icon {
    left: -40px;
    right: auto;
}

.education-card:nth-child(even) .education-icon {
    right: -40px;
    left: auto;
}

.education-content {
    position: relative;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Add arrows for left and right cards */
.education-card:nth-child(odd) .education-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent var(--surface-color) transparent transparent;
}

.education-card:nth-child(even) .education-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--surface-color);
}

/* Hover effects */
.education-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

.education-card:hover .education-icon {
    transform: translateY(-50%) scale(1.1) rotate(360deg);
    background: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(var(--secondary-color-rgb), 0.4);
}

.education-card:nth-child(odd):hover .education-content {
    transform: translateX(-5px);
}

.education-card:nth-child(even):hover .education-content {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 30px;
    }

    .education-card {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 1.5rem;
        text-align: left;
    }

    .education-card:nth-child(odd),
    .education-card:nth-child(even) {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }

    .education-card:nth-child(odd) .education-icon,
    .education-card:nth-child(even) .education-icon {
        left: -40px;
        right: auto;
    }

    .education-card:nth-child(odd) .education-content::before,
    .education-card:nth-child(even) .education-content::before {
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--surface-color) transparent transparent;
        right: auto;
        left: -10px;
    }
}

/* Resume Download Button Styles */
.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
    margin: 2rem auto;
    border: none;
}

.resume-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: 0.5s;
}

.resume-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
}

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

.resume-btn i {
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resume-btn:hover i {
    transform: translateX(3px) scale(1.1);
}

.resume-section {
    text-align: center;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.resume-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.resume-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

.profile-card.geeksforgeeks {
    background: var(--surface-color);
}

.profile-card.geeksforgeeks:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

.profile-card.geeksforgeeks .profile-icon {
    background: var(--surface-color);
}

.profile-card.geeksforgeeks h3 {
    color: var(--text-primary);
}

.profile-card.geeksforgeeks .profile-stats {
    color: var(--text-secondary);
}

.profile-card.geeksforgeeks .profile-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transition: all 0.3s ease;
}

.profile-card.geeksforgeeks .profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.project-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
    box-shadow: 0 3px 10px var(--shadow-color);
    text-decoration: none;
}

.project-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Footer Dark Mode */
[data-theme="dark"] .footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .footer-section {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .footer-section:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .footer h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .footer p {
    color: var(--text-primary);
}

[data-theme="dark"] .footer-links a {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

[data-theme="dark"] .social-links a {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .footer-bottom p {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-section h3::before {
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
}

[data-theme="dark"] .footer-links i {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-links a:hover i {
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(var(--primary-color-rgb), 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.contact-info-item:hover {
    transform: translateX(10px);
    background: rgba(var(--primary-color-rgb), 0.1);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
}

.contact-info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.1) rotate(360deg);
    background: var(--secondary-color);
}

.contact-info-text {
    flex: 1;
}

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

[data-theme="dark"] .contact-info-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .contact-info-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 2rem 0 4rem 0;
    padding-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--secondary-color)
    );
    transform: translateY(-50%);
}

.section-header h2::before {
    left: -60px;
}

.section-header h2::after {
    right: -60px;
}

.section-line {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
}

.section-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: shimmer 2s infinite;
}

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

/* Section visibility animation */
.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Update existing section headers */
.about h2,
.projects h2,
.contact h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.about h2::before,
.projects h2::before,
.contact h2::before,
.about h2::after,
.projects h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--secondary-color)
    );
    transform: translateY(-50%);
}

.about h2::before,
.projects h2::before,
.contact h2::before {
    left: -60px;
}

.about h2::after,
.projects h2::after,
.contact h2::after {
    right: -60px;
}

/* Dark mode adjustments */
[data-theme="dark"] .section-header h2 {
    text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
}

[data-theme="dark"] .section-line {
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header {
        margin: 1rem 0 3rem 0;
        padding-top: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
        padding: 0.5rem 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    section:first-of-type {
        padding-top: 6rem;
    }

    .about,
    .skills,
    .projects,
    .contact {
        padding: 4rem 5%;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin: 1rem 0 2rem 0;
        padding-top: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        padding: 0.5rem 1rem;
    }

    section {
        padding: 3rem 0;
    }

    section:first-of-type {
        padding-top: 5rem;
    }

    .about,
    .skills,
    .projects,
    .contact {
        padding: 3rem 5%;
        margin-top: 1rem;
    }
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.achievement-item {
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 150px;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(var(--primary-color-rgb), 0.2),
        transparent
    );
    transition: 0.6s;
}

.achievement-item:hover::before {
    left: 100%;
}

.achievement-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.2);
}

.achievement-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-item:hover i {
    transform: scale(1.2) rotate(360deg);
    color: var(--secondary-color);
}

.achievement-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.achievement-item:hover .achievement-label {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .achievement-item {
        padding: 1.2rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0;
    }

    .achievement-item {
        padding: 1rem;
    }

    .achievement-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .achievement-number {
        font-size: 1.4rem;
    }

    .achievement-label {
        font-size: 0.8rem;
    }
}

/* Animation for achievement items */
.achievement-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.achievement-item:nth-child(1) { animation-delay: 0.1s; }
.achievement-item:nth-child(2) { animation-delay: 0.2s; }
.achievement-item:nth-child(3) { animation-delay: 0.3s; }
.achievement-item:nth-child(4) { animation-delay: 0.4s; }
.achievement-item:nth-child(5) { animation-delay: 0.5s; }
.achievement-item:nth-child(6) { animation-delay: 0.6s; }

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

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cta-button.secondary {
        justify-content: center;
        padding: 1rem 2rem;
        gap: 0.8rem;
    }

    .cta-button.secondary i {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        width: 100%;
        padding: 0 1rem;
    }

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

    .cta-button.secondary {
        padding: 0.9rem 1.8rem;
        gap: 0.6rem;
    }

    .cta-button.secondary i {
        font-size: 1.1rem;
    }
}

/* Section Animations */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Section content animations */
.section-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Section header animations */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Add animation delays for content */
.animate-delay-1 {
    transition-delay: 0.2s;
}

.animate-delay-2 {
    transition-delay: 0.4s;
}

.animate-delay-3 {
    transition-delay: 0.6s;
}

/* Marksheet Modal Styles */
.marksheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.marksheet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.marksheet-btn i {
    font-size: 1rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-content {
    margin-top: 1rem;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Dark mode adjustments */
[data-theme="dark"] .modal {
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-close {
    color: var(--text-primary);
}

[data-theme="dark"] .modal-close:hover {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .marksheet-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .marksheet-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Marksheet Modal Styles */
#marksheetModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#marksheetModal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.view-marksheet-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.view-marksheet-btn:hover {
    background-color: #0056b3;
}

.view-marksheet-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* Close button for modal */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ddd;
}

.view-marksheet-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.view-marksheet-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.view-marksheet-link i {
    font-size: 16px;
}

#marksheetModal,
.close-modal,
.view-marksheet-btn {
    display: none;
}

.designed-by {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--text-color);
    animation: fadeInUp 1s ease-out;
}

.designed-by i {
    color: #ff4d4d;
    margin: 0 5px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

[data-theme="dark"] .designed-by {
    color: var(--text-color);
}

[data-theme="dark"] .designed-by i {
    color: #ff6b6b;
}

