/* ==============================
   CSS RESET & BASE STYLES
============================== */
:root {
    /* Dark theme (default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #666666;
    --accent-primary: #3b82f6;
    --accent-secondary: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --border-color: #333333;
    --shadow-light: rgba(59, 130, 246, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-accent: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --border-color: #e2e8f0;
    --shadow-light: rgba(59, 130, 246, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(248, 250, 252, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

body.loaded {
    opacity: 1;
}

/* ==============================
   NAVIGATION STYLES
============================== */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-primary) !important;
}

.navbar-brand .logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-primary) !important;
    background-color: rgba(59, 130, 246, 0.1);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==============================
   HERO SECTION STYLES
============================== */
.hero-section {
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-greeting {
    margin-bottom: 1rem;
}

.greeting-text {
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

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

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

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.typing-text {
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -5px;
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-light);
    color: white;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 50px var(--shadow-light);
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    color: var(--accent-primary);
}

.card-1 { top: 10%; right: -10%; animation-delay: 0s; }
.card-2 { bottom: 30%; left: -15%; animation-delay: 2s; }
.card-3 { top: 60%; right: -5%; animation-delay: 4s; }

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 25px;
    position: relative;
    animation: mouseMove 2s infinite;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes mouseMove {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ==============================
   SECTION STYLES
============================== */
.section {
    padding: 5rem 0;
}

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

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin-bottom: 2.5rem;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

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

/* ==============================
   ABOUT SECTION STYLES
============================== */
.about-section {
    background: var(--bg-secondary);
}

.about-content {
    padding-right: 2rem;
}

@media (max-width: 992px) {
    .about-content {
        padding-right: 1rem;
        margin-bottom: 2rem;
    }
}

.about-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-info {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==============================
   SKILLS SECTION STYLES
============================== */
.skills-section {
    background: var(--bg-primary);
}

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

.skill-category {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow-medium);
    border-color: var(--accent-primary);
}

.tech-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.tech-item i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==============================
   PROJECTS SECTION STYLES
============================== */
.featured-projects {
    background: var(--bg-secondary);
}

.project-card {
    background: var(--bg-tertiary);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-links a:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Project placeholder styles */
.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    gap: 0.5rem;
}

.project-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-placeholder span {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==============================
   FOOTER STYLES
============================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* ==============================
   EDUCATION TIMELINE STYLES
============================== */
.education-timeline {
    position: relative;
    padding: 3rem 0;
    margin-top: 1rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

.education-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.education-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.education-item::before {
    display: none;
}

.education-item:hover::before {
    display: none;
}

.education-year {
    flex-shrink: 0;
    width: 120px;
    margin-right: 2rem;
    text-align: center;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.education-year span {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.education-year span:hover {
    transform: scale(1.05);
}

.education-content {
    flex: 1;
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    margin-left: 0.5rem;
}

.education-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--accent-primary);
}

.education-icon {
    position: absolute;
    top: -15px;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.education-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid;
}

.status-current {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: #22c55e;
}

.status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.status-ongoing {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: #fbbf24;
}

.education-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-content h4 i {
    font-size: 1rem;
    opacity: 0.8;
}

.education-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-highlights span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.education-highlights span:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.education-highlights span i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Responsive design for education timeline */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 0.75rem;
    }
    
    .education-item {
        flex-direction: column;
    }
    
    .education-year {
        width: auto;
        margin-right: 0;
        margin-bottom: 1rem;
        margin-left: 2rem;
    }
    
    .education-content {
        margin-left: 2rem;
    }
    
    .education-icon {
        top: -10px;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .education-content h3 {
        font-size: 1.2rem;
    }
    
    .education-highlights span {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ==============================
   RESPONSIVE DESIGN
============================== */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
        justify-content: center;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .floating-card {
        display: none;
    }
    
    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==============================
   UTILITY CLASSES
============================== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==============================
   DARK/LIGHT THEME TRANSITIONS
============================== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Theme toggle icon animation */
.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Ensure proper contrast for form elements */
input, textarea, select {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Education page specific styles */
.education-hero .hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Contact and Projects page specific styles */
.contact-hero .hero-description,
.projects-hero .hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ==============================
   CUSTOM LOGO STYLES
============================== */
.custom-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.custom-logo svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.navbar-brand:hover .custom-logo svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

.custom-logo svg text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.5px;
}

.anchor_all{
    font-size: 0.95rem !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .custom-logo svg {
        width: 35px;
        height: 35px;
    }
    
    .custom-logo svg text {
        font-size: 12px;
    }
}

/* ==============================
   LOADING & ANIMATION STATES
============================== */

/* Loading Overlay Fixes */
/* Loading Screen Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrolling */
}

/* Lock the body scroll when loading */
body.loading {
    overflow: hidden;
    height: 100vh;
}

.loading-content {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

/* Animation for the progress bar */
.loading-progress-bar {
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Ensure nothing can be interacted with during loading */
.loading-overlay * {
    pointer-events: none;
}

/* Hide scrollbar during loading */
.loading-overlay::-webkit-scrollbar {
    display: none;
}
/* ==============================
   GAME PAGE STYLES
============================== */

/* Game Hero Section */
.game-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Game Container */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Game Choices */
.game-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.choice-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.choice-card:hover::before {
    left: 100%;
}

.choice-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.choice-card:active {
    transform: translateY(-5px) scale(0.98);
}

.choice-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.choice-card:hover .choice-icon {
    transform: scale(1.1) rotate(5deg);
}

.choice-icon i {
    font-size: 2.5rem;
    color: white;
}

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

.choice-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Game Status */
.game-status {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Score Board */
.score-board {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.score-item {
    text-align: center;
    min-width: 100px;
}

.score-item h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vs-divider {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-accent);
    padding: 0 1rem;
    position: relative;
}

.vs-divider::before,
.vs-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
}

.vs-divider::before {
    left: -30px;
}

.vs-divider::after {
    right: -30px;
}

/* Game Result */
.game-result {
    width: 100%;
    max-width: 600px;
}

.result-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.player-choice,
.computer-choice {
    text-align: center;
}

.player-choice h5,
.computer-choice h5 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.choice-display {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.choice-display i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.result-message {
    text-align: center;
    padding: 0 1rem;
}

.result-message h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Game Controls */
.game-controls {
    margin-top: 1rem;
}

#resetGame {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#resetGame:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Animation for winning/losing */
.choice-display.winner {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    animation: pulse 0.5s ease-in-out;
}

.choice-display.loser {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .game-choices {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .choice-card {
        padding: 1.5rem;
    }
    
    .choice-icon {
        width: 60px;
        height: 60px;
    }
    
    .choice-icon i {
        font-size: 2rem;
    }
    
    .score-board {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .vs-divider {
        transform: rotate(90deg);
    }
    
    .vs-divider::before,
    .vs-divider::after {
        display: none;
    }
    
    .result-display {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .result-message {
        order: -1;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 2rem 1rem;
    }
    
    .choice-card {
        padding: 1rem;
    }
    
    .choice-icon {
        width: 50px;
        height: 50px;
    }
    
    .choice-icon i {
        font-size: 1.5rem;
    }
    
    .score {
        font-size: 2rem;
    }
    
    .choice-display {
        width: 50px;
        height: 50px;
    }
    
    .choice-display i {
        font-size: 1.2rem;
    }
}

/* Dark/Light theme specific adjustments */
[data-theme="light"] .choice-card {
    background: var(--bg-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .choice-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .score-board,
[data-theme="light"] .result-display {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

