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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Email Verification Banner */
.email-verify-banner {
    position: fixed;
    top: calc(1.2rem * 2 + 1.6rem + 1px); /* navbar padding top + padding bottom + content height + border */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 0.75rem 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    display: none;
    animation: slideDownBanner 0.3s ease;
    margin-top: 0;
}

.email-verify-banner.show {
    display: block;
}

@keyframes slideDownBanner {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-verify-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.email-verify-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.email-verify-banner-content i {
    font-size: 1.2rem;
}

.email-verify-banner-content span {
    font-weight: 600;
    font-size: 0.95rem;
}

.email-verify-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-verify-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

body.dark-mode .email-verify-banner {
    background: linear-gradient(135deg, #d97706, #dc2626);
}

/* Email Verification Modal */
.email-verify-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
}

.email-verify-modal.show {
    display: flex;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.email-verify-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s ease;
    position: relative;
}

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

.email-verify-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.email-verify-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.email-verify-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.email-verify-modal-header h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.email-verify-modal-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.email-verify-modal-body {
    margin-bottom: 1.5rem;
}

.email-verify-code-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.email-verify-code-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.email-verify-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.email-verify-modal-btn {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.email-verify-modal-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.email-verify-modal-btn-primary:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.email-verify-modal-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.email-verify-modal-btn-secondary:hover {
    background: #e5e7eb;
}

.email-verify-modal-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.email-verify-modal-message.show {
    display: block;
}

.email-verify-modal-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.email-verify-modal-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

body.dark-mode .email-verify-modal-content {
    background: #1e293b;
    color: #e5e7eb;
}

body.dark-mode .email-verify-modal-header h3 {
    color: #e5e7eb;
}

body.dark-mode .email-verify-modal-header p {
    color: #9ca3af;
}

body.dark-mode .email-verify-code-input {
    background: #2d2d44;
    border-color: #3a3a5c;
    color: #e5e7eb;
}

body.dark-mode .email-verify-code-input:focus {
    border-color: #6366f1;
}

body.dark-mode .email-verify-modal-close {
    color: #9ca3af;
}

body.dark-mode .email-verify-modal-close:hover {
    background: #2d2d44;
    color: #e5e7eb;
}

body.dark-mode .email-verify-modal-btn-secondary {
    background: #2d2d44;
    color: #9ca3af;
}

body.dark-mode .email-verify-modal-btn-secondary:hover {
    background: #3a3a5c;
}

/* Adjust body padding when banner is shown */
body.has-verify-banner {
    padding-top: 110px;
}

body.has-verify-banner .hero {
    padding-top: 110px;
}

.navbar .container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-brand i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.nav-brand span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.nav-menu a i {
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-menu a span {
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 6px 30px rgba(15, 23, 42, 0.6);
}

body.dark-mode .nav-menu a {
    color: #e2e8f0;
}

body.dark-mode .nav-menu a:hover {
    color: #111827;
    background: rgba(255, 255, 255, 0.85);
}

body.dark-mode .nav-toggle span {
    background: #e5e7eb;
}

.nav-menu .nav-account-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.45rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-menu .nav-logout-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 30px;
    padding: 0.45rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: none;
}

.nav-menu .nav-logout-btn:hover {
    background: white;
    color: var(--primary-color);
}

.nav-menu a:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.nav-menu a:hover i {
    transform: scale(1.1);
}

.nav-dark-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-dark-mode-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

body.dark-mode .nav-dark-mode-btn {
    color: #e5e7eb;
}

body.dark-mode .nav-dark-mode-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback gradient in case video fails to load */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    color: white;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-user-panel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-user-greeting {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.hero-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px dashed rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-style: solid;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Section */
.about {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

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

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

.skill-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.skill-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Web Design Section */
.web-design {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.web-design-content {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.design-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

/* Contact Section */
.contact {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-weight: 600;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: white;
}

.contact-link i {
    font-size: 1.5rem;
}

/* Constellation Canvas */
#constellation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    margin-top: 1.5rem;
}

/* Date Time Section in Footer */
.date-time-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.date-time-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.date-time-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.date-time-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    font-weight: 500;
    display: block;
}

.date-time-value {
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    line-height: 1.6;
    word-break: break-word;
}

/* Dark mode footer adjustments */
body.dark-mode .footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .date-time-card {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Dark Mode Styles for Main Page */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e5e7eb;
}

body.dark-mode::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

body.dark-mode .navbar {
    background: rgba(30, 30, 46, 0.98);
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

body.dark-mode .nav-brand {
    color: #e5e7eb;
}

body.dark-mode .nav-menu a {
    color: #e5e7eb;
}

body.dark-mode .nav-menu a:hover {
    color: white;
}

body.dark-mode .nav-toggle span {
    background: #e5e7eb;
}

body.dark-mode .hero {
    /* Keep the background gradient for dark mode */
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.3) 0%, rgba(22, 33, 62, 0.3) 25%, rgba(15, 52, 96, 0.3) 50%, rgba(83, 52, 131, 0.3) 75%, rgba(106, 44, 112, 0.3) 100%);
}

body.dark-mode .hero::before {
    /* Lighter overlay so image is visible */
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .hero-title,
body.dark-mode .hero-subtitle {
    color: white;
}

body.dark-mode .about,
body.dark-mode .contact,
body.dark-mode .web-design {
    background: rgba(30, 30, 46, 0.4);
}

body.dark-mode .skill-card,
body.dark-mode .stat-card {
    background: #2d2d44;
    color: #e5e7eb;
}

body.dark-mode .section-title {
    color: #e5e7eb;
}

body.dark-mode .about-text,
body.dark-mode .contact-text {
    color: #d1d5db;
}

body.dark-mode .about-text strong {
    color: #818cf8;
}

body.dark-mode .stat-number {
    color: #e5e7eb;
}

body.dark-mode .stat-label {
    color: #9ca3af;
}

body.dark-mode .stat-icon {
    color: #818cf8;
}

body.dark-mode .skill-card h3 {
    color: #e5e7eb;
}

body.dark-mode .skill-card p {
    color: #d1d5db;
}

body.dark-mode .skill-icon {
    color: #818cf8;
}

body.dark-mode .contact-link {
    background: #2d2d44;
    color: #e5e7eb;
}

body.dark-mode .contact-link:hover {
    background: var(--primary-color);
    color: white;
}

body.dark-mode .btn-primary {
    background: white;
    color: var(--primary-color);
}

body.dark-mode .btn-secondary {
    color: white;
    border-color: white;
}

body.dark-mode .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Mobile menu dark mode */
body.dark-mode .nav-menu {
    background: rgba(30, 30, 46, 0.98);
    backdrop-filter: blur(20px);
}

body.dark-mode .nav-menu a {
    color: #e5e7eb;
}

/* Recommended Pages Section */

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

.recommended-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.recommended-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.recommended-card:hover .recommended-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

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

.recommended-card p {
    color: var(--text-light);
    line-height: 1.6;
}


body.dark-mode .recommended-card {
    background: #2d2d44;
    color: #e5e7eb;
}

body.dark-mode .recommended-card h3 {
    color: #e5e7eb;
}

body.dark-mode .recommended-card p {
    color: #d1d5db;
}

body.dark-mode .recommended-icon {
    color: #818cf8;
}

body.dark-mode .recommended-card:hover .recommended-icon {
    color: #a78bfa;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 80%;
        max-width: 300px;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 0 20px;
        transition: right 0.3s ease;
        gap: 0.5rem;
        align-items: stretch;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
        border-radius: 10px;
    }

    .nav-brand {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

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

    .video-container {
        padding-bottom: 75%; /* Taller aspect ratio for mobile */
    }

}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-brand span {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-menu {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .footer {
        padding: 1.5rem 0;
    }
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.7);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1);
}

.scroll-to-top i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Dark mode styles for scroll to top button */
body.dark-mode .scroll-to-top {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

body.dark-mode .scroll-to-top:hover {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.8);
}

.floating-account-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.35);
    z-index: 1000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-account-btn i {
    font-size: 1.2rem;
}

.floating-account-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.5);
}

.floating-account-btn:active {
    transform: translateY(-1px);
}

body.dark-mode .floating-account-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

@media (max-width: 768px) {
    .floating-account-btn {
        bottom: 80px;
        right: 20px;
        padding: 0.75rem 1.1rem;
    }

    .floating-account-btn span {
        font-size: 0.85rem;
    }
}

/* Responsive design for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .date-time-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .date-time-card {
        padding: 1rem;
    }
    
    .date-time-value {
        font-size: 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Order page - disabled notice and disabled form styling */
.order-disabled-notice {
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    font-size: 1.05rem;
}

.order-form fieldset[disabled] {
    opacity: 0.6;
    filter: grayscale(6%);
}

.order-form .submit-btn,
.order-form .reset-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.order-form .submit-btn:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.12);
}

.order-form .submit-btn[disabled],
.order-form .reset-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Make the form container look a bit more card-like */
.order-form-container {
    background: rgba(255,255,255,0.9);
    padding: 1.4rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .order-disabled-notice { font-size: 0.95rem; padding: 0.85rem; }
}

