/* Modern CSS Reset and Base Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --dark-background: #f3f4f6;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

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

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

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

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

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

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header and Navigation */
.hero {
    background: #3b82f6 !important;
    background-image: none !important;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 4rem 0;
}

/* Background pattern removed for cleaner look */
.hero::before,
.hero::after {
    display: none !important;
}

/* Animation removed */

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    color: white;
    -webkit-text-fill-color: white;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.6;
    text-align: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: white;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.sticky-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-nav.hidden {
    transform: translateY(-100%);
}

.sticky-nav.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.logo::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: left 0.6s ease;
}

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

.logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.sticky-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

/* Focus visibility for accessibility */
:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section.dark {
    background: var(--dark-background);
}

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

.section-title {
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* About Section */
.profile-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.profile-content h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-background);
    border-radius: 1rem;
}

.detail-item i {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.detail-item p {
    margin: 0;
    font-size: 0.9rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

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

.profile-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-frame {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--dark-background);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-header i {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    margin-bottom: 0.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.skill-bar {
    height: 8px;
    background: var(--dark-background);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    border-radius: 4px;
}

.skill-level.expert {
    background: var(--success-color);
}

.skill-level.advanced {
    background: var(--primary-color);
}

.skill-level.intermediate {
    background: #f59e0b;
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: white;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.project-image {
    height: 200px;
    background: var(--dark-background);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-links {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.project-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    transition: var(--transition);
}

.project-links a:hover {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.1);
}

/* Custom Placeholders */
.custom-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.custom-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.custom-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.tab-tracker-placeholder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.digit-recognition-placeholder {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Certificate Placeholders */
.timetable-certificate-placeholder {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.nba-certificate-placeholder {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.custom-placeholder small {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.custom-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--dark-background);
    border-radius: 1rem;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.project-title {
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.project-tech span {
    padding: 0.25rem 0.75rem;
    background: var(--dark-background);
    border-radius: 1rem;
    font-size: 0.8rem;
    color: var(--light-text);
}

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

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    padding: 0.5rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 1rem;
    text-align: center;
    font-weight: 500;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.timeline-role {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-details {
    margin: 1rem 0;
    padding-left: 1rem;
}

.timeline-details li {
    margin-bottom: 0.5rem;
}

.timeline-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.timeline-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
}

.timeline-links a:hover {
    text-decoration: underline;
}

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

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.education-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.education-date {
    display: block;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.education-degree {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.certificate-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.certificate-image {
    height: 200px;
    background: var(--dark-background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-content {
    padding: 1.5rem;
}

.certificate-content h3 {
    margin-bottom: 0.5rem;
}

.certificate-footer {
    margin-top: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

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

.form-group.honeypot {
    display: none !important;
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Error messages and form feedback */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.success input,
.form-group.success textarea {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-block;
}

/* Form setup instructions */
.setup-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.setup-instructions h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.setup-instructions ol {
    margin-left: 1.5rem;
    color: var(--light-text);
}

.setup-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.setup-instructions a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.setup-instructions a:hover {
    text-decoration: underline;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--light-text);
    font-style: italic;
}

.form-note i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--light-text);
    font-style: italic;
    font-size: 0.9rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

/* Screen reader only labels for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced button styles for better UX */
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background: var(--dark-background);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-social a {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--gradient-2);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Back-to-top side utilities (override positioning) */
.back-to-top.right { right: 1.25rem !important; left: auto !important; }
.back-to-top.left { left: 1.25rem !important; right: auto !important; }

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

.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--dark-background);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--primary-color);
        color: white;
        transform: translateX(10px);
    }

    .mobile-menu-btn {
        display: block;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

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

    .hero {
        padding: 6rem 0;
    }

    .section {
        padding: 4rem 0;
    }

    /* Extra breathing room on mobile */
    .profile-card { padding: 2rem; }
    .contact-form { padding: 1.5rem; }
    .container { padding: 0 1.25rem; }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
    .mobile-menu-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn:active {
        transform: scale(0.95);
        background: var(--primary-color);
        color: white;
    }

    .nav-links.active {
        animation: slideDown 0.3s ease-out;
    }

    .nav-links li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

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

/* Ensure nav sits flush with the top across all sizes */
.sticky-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; }

/* NEW: Premium dark theme + glassmorphism */
:root {
    --bg-start: #0b1220;
    --bg-end: #0e1629;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --neon: #22d3ee; /* teal */
    --neon2: #60a5fa; /* neon blue */
    --gold: #fbbf24; /* accent gold */
}

body {
    background: radial-gradient(1200px 800px at 20% 10%, #111827, transparent 60%),
                 linear-gradient(160deg, var(--bg-start), var(--bg-end));
    color: #e5e7eb;
}

/* Ensure readable text on dark nav */
.sticky-nav .name { color: #e5e7eb; }
.sticky-nav .nav-links a { color: #e5e7eb; border-color: transparent; }

/* Headings and paragraph contrast */
h2, h3, h4 { color: #e5e7eb; }
p { color: #cbd5e1; }

/* Make skill labels readable on dark */
.skill-name { color: #e5e7eb; }

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

#scene-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 800px at 10% 10%, rgba(34, 211, 238, 0.15), transparent 60%),
                radial-gradient(700px 700px at 90% 20%, rgba(96, 165, 250, 0.12), transparent 60%);
    filter: blur(30px) saturate(120%);
    animation: gradientFloat 18s ease-in-out infinite alternate;
    z-index: -3;
}

@keyframes gradientFloat {
    0% { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(0,-20px,0) scale(1.05); }
}

/* Glassy surfaces */
.profile-card,
.skill-category,
.project-card,
.timeline-content,
.education-card,
.certificate-card,
.contact-form,
.contact-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

/* Nav glass */
    .sticky-nav {
    background: rgba(10, 14, 23, 0.55);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px) saturate(140%);
}

/* Keep header dark when scrolled */
.sticky-nav.scrolled {
    background: rgba(10, 14, 23, 0.8);
    border-bottom-color: rgba(255,255,255,0.12);
}

/* Hero override to be transparent on dark */
.hero {
    background: transparent !important;
    min-height: 85vh;
}
/* Bring hero content slightly higher on desktop */
@media (min-width: 769px) {
    .hero { padding-top: 0; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    text-shadow: 0 8px 30px rgba(34, 211, 238, 0.25), 0 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
    color: #d1d5db;
}

/* Hero visual layer */
.hero { position: relative; }
.hero-visual { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#hero-network { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0.6; }
.hero-orbs { position: absolute; inset: 0; }
.hero-orbs .orb { position: absolute; width: 140px; height: 140px; border-radius: 50%; filter: blur(10px); opacity: 0.35; }
.orb-a { background: radial-gradient(circle at 30% 30%, #60a5fa, transparent 60%); top: 10%; left: 10%; animation: floatA 12s ease-in-out infinite alternate; }
.orb-b { background: radial-gradient(circle at 70% 70%, #22d3ee, transparent 60%); top: 15%; right: 12%; animation: floatB 14s ease-in-out infinite alternate; }
.orb-c { background: radial-gradient(circle at 50% 50%, #22d3ee, transparent 60%); bottom: 10%; left: 25%; animation: floatC 16s ease-in-out infinite alternate; }
@keyframes floatA { from { transform: translate3d(0,0,0);} to { transform: translate3d(10px,-20px,0);} }
@keyframes floatB { from { transform: translate3d(0,0,0);} to { transform: translate3d(-15px,15px,0);} }
@keyframes floatC { from { transform: translate3d(0,0,0);} to { transform: translate3d(20px,-10px,0);} }

/* Mission card */
.mission-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}
.mission-card h3 { color: var(--neon2); margin-bottom: 0.5rem; }
.mission-card p { margin: 0; }

/* Neon accent underlines */
h1::after, h2::after {
    background: linear-gradient(90deg, var(--neon), var(--neon2));
}

/* Cursor glow */
.cursor-glow { position: fixed; width: 200px; height: 200px; border-radius: 50%; pointer-events: none; left: 0; top: 0; z-index: -1; background: radial-gradient(circle, rgba(96,165,250,0.22), rgba(34,211,238,0.08) 60%, transparent 70%); filter: blur(30px); transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.25s ease; }
body:hover .cursor-glow { opacity: 1; }

/* Link underline animation */
a:not(.btn):not(.social-link):not(.social-icon) { position: relative; }
a:not(.btn):not(.social-link):not(.social-icon)::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: linear-gradient(90deg, var(--neon), var(--neon2)); transition: width 0.25s ease; }
a:not(.btn):not(.social-link):not(.social-icon):hover::after { width: 100%; }

/* Project microinteractions */
.project-card .project-title { transition: transform 0.3s ease, color 0.3s ease; }
.project-card:hover .project-title { transform: translateY(-2px); color: var(--neon2); }
.project-card .project-tech span { transition: background 0.3s ease, color 0.3s ease; }
.project-card:hover .project-tech span { background: rgba(96,165,250,0.14); color: #e5e7eb; }

/* Nav link active underline */
.nav-links a { position: relative; }
.nav-links a::after { content:''; position:absolute; left: 1rem; right: 1rem; bottom: 10px; height: 2px; background: linear-gradient(90deg, var(--neon), var(--neon2)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; border-radius: 2px; }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

/* Buttons with soft glow */
.btn-primary {
    background: linear-gradient(135deg, var(--neon2), var(--neon));
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.btn-primary:hover {
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.35), 0 0 0 1px rgba(255,255,255,0.12) inset;
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    color: #e5e7eb;
}

/* Card hover glow + tilt-ready */
.project-card,
.education-card,
.certificate-card,
.stat-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

.project-card:hover,
.education-card:hover,
.certificate-card:hover,
.stat-item:hover {
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.15), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* Project image slight scale on hover for depth */
.project-image img { transition: transform 0.5s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }

/* Contact form glass highlight */
.contact-form {
    box-shadow: 0 10px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* Footer darker glass */
footer { background: rgba(10, 14, 23, 0.65); }

/* Parallax helper preserves 3D */
[data-parallax] { will-change: transform; }

/* Particle canvas respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #particle-canvas { display: none; }
    #hero-network { display: none; }
    .hero-orbs { display: none; }
}

/* Fix light backgrounds for dark glass theme */
.section.dark { background: transparent; }
.project-image, .certificate-image { background: rgba(255,255,255,0.04); }
.image-frame { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.detail-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.stats { gap: 1rem; }
.stat-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.project-category { background: rgba(255,255,255,0.06); color: #cbd5e1; }
.project-tech span { background: rgba(255,255,255,0.06); color: #cbd5e1; }
.project-links a { background: rgba(255,255,255,0.1); color: var(--neon2); border: 1px solid rgba(255,255,255,0.14); }
.project-links a:hover { background: linear-gradient(135deg, var(--neon2), var(--neon)); color: white; }
.skill-bar { background: rgba(255,255,255,0.12); }
.contact-details .contact-item { background: rgba(255,255,255,0.06); }

/* Form controls on dark glass */
.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: #e5e7eb;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

/* Form messages harmonized for dark */
.form-message.success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.form-message.error {
    background: rgba(220, 38, 38, 0.12);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.35);
}

/* Magnetic hover */
.magnetic { position: relative; will-change: transform; transition: transform 0.2s ease; }
.magnetic:hover { transform: translateZ(0) scale(1.03); }
.logo.magnetic:hover { transform: translateZ(0) scale(1.08) rotate(2deg); }

/* Footer right with social + back-to-top */
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.back-to-top.in-footer { position: static !important; width: 40px; height: 40px; box-shadow: none; border-width: 1px; margin-top: 0.5rem; margin-right: 0; }
.back-to-top.in-footer.visible { opacity: 1; visibility: visible; }

/* Modal (Quick View) */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset:0; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); }
.modal-dialog { position: relative; width: min(900px, 92vw); max-height: 86vh; overflow: auto; border-radius: 1rem; background: rgba(16, 24, 40, 0.8); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.modal-body { padding: 1.25rem; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #e5e7eb; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,0.12); }