/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Dark Theme (Default) */
:root {
    --primary-color: #667eea;
    --secondary-color: #8892b0;
    --accent-color: #f093fb;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --border-color: #334155;
    --success-color: #667eea;
    --danger-color: #f093fb;
    --warning-color: #fbbf24;
    --info-color: #06b6d4;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #1a1b3e 0%, #2d1b69 25%, #4c1d95 50%, #667eea 75%, #f093fb 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 20%, #f093fb 80%);
    
    --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #667eea;
    --secondary-color: #8b5cf6;
    --accent-color: #f093fb;
    --text-primary: #7c3aed;
    --text-secondary: #8b5cf6;
    --text-muted: #a855f7;
    --bg-primary: #f0e6ff;
    --bg-secondary: #e9d5ff;
    --bg-tertiary: #ddd6fe;
    --bg-card: #ede9fe;
    --border-color: #c4b5fd;
    --success-color: #667eea;
    --danger-color: #f093fb;
    --warning-color: #fbbf24;
    --info-color: #06b6d4;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 20%, #f093fb 80%);
    
    --shadow-light: 0 2px 10px rgba(240, 147, 251, 0.15);
    --shadow-medium: 0 4px 20px rgba(240, 147, 251, 0.2);
    --shadow-heavy: 0 8px 30px rgba(240, 147, 251, 0.25);
    --shadow-glow: 0 0 20px rgba(240, 147, 251, 0.3);
}

/* Light Theme Hero Text Override */
[data-theme="light"] .hero-section {
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
}

[data-theme="light"] .hero-section .display-4,
[data-theme="light"] .hero-section .lead,
[data-theme="light"] .hero-section .typing-effect {
    color: #f8fafc !important;
}

[data-theme="light"] .hero-section .btn {
    color: #f8fafc !important;
}

/* Light Theme Navbar Override */
[data-theme="light"] .navbar {
    background: rgba(240, 230, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #c4b5fd;
}

[data-theme="light"] .navbar-brand {
    color: #7c3aed !important;
}

[data-theme="light"] .navbar-nav .nav-link {
    color: #8b5cf6 !important;
}

/* Light Theme Contact Section Text Override */
[data-theme="light"] .text-white {
    color: #7c3aed !important;
}

[data-theme="light"] #contact .section-title {
    color: #7c3aed !important;
}

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

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

/* NUCLEAR OPTION: Icon spacing that overrides everything */

/* Target ALL FontAwesome icons in buttons, links, and nav elements */
.btn .fab,
.btn .fas,
.btn .far,
.btn .fal,
.btn .fad,
a .fab,
a .fas,
a .far,
a .fal,
a .fad,
.nav-link .fab,
.nav-link .fas,
.nav-link .far,
.nav-link .fal,
.nav-link .fad,
button .fab,
button .fas,
button .far,
button .fal,
button .fad {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Icons that are the last child (at the end of text) */
.btn .fab:last-child,
.btn .fas:last-child,
.btn .far:last-child,
.btn .fal:last-child,
.btn .fad:last-child,
a .fab:last-child,
a .fas:last-child,
a .far:last-child,
a .fal:last-child,
a .fad:last-child {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

/* Icons that are alone (only child) - no spacing */
.btn .fab:only-child,
.btn .fas:only-child,
.btn .far:only-child,
.btn .fal:only-child,
.btn .fad:only-child,
a .fab:only-child,
a .fas:only-child,
a .far:only-child,
a .fal:only-child,
a .fad:only-child {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Override specific problem areas */
.social-links .btn .fab,
.social-links .btn .fas {
    margin-right: 10px !important;
}

.contact-form .btn .fas {
    margin-right: 10px !important;
}

.project-links .btn .fab,
.project-links .btn .fas {
    margin-right: 10px !important;
}

/* Social footer icons should have no spacing */
.social-footer .fab,
.social-footer .fas {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* List items with icons */
li .fas {
    margin-right: 8px !important;
}

/* Contact items */
.contact-item .fas {
    margin-right: 8px !important;
}

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

/* Bootstrap Overrides for Theme Support */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

.bg-dark {
    background-color: var(--bg-primary) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.border {
    border-color: var(--border-color) !important;
}

/* Section Styling */
section {
    position: relative;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

section.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Additional Text Color Overrides */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-primary);
}

.project-title, .education-institution {
    color: var(--primary-color) !important;
}

.project-description, .achievements-list li {
    color: var(--text-secondary) !important;
}

.timeline-item h4 {
    color: var(--primary-color) !important;
}

.timeline-item p, .timeline-item li {
    color: var(--text-secondary) !important;
}

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

/* Navigation */
.navbar {
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 0.5rem 0;
    min-height: 60px;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.3rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-size: 1.1rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 0 0.3rem;
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--primary-color) !important;
    background: var(--bg-tertiary) !important;
    transform: scale(1.1);
}

.theme-toggle:focus {
    box-shadow: 0 0 0 0.2rem var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: grain 8s linear infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

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

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

.typing-effect,
.typing-effect::before,
.typing-effect::after {
    white-space: nowrap;
    overflow: hidden;
    min-height: 1.2em;
    border: none !important;
    border-right: none !important;
    border-left: none !important;
    animation: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Completely remove any cursor or blinking effects */  
.typing-effect * {
    border: none !important;
    animation: none !important;
}

/* Remove any blinking effects specifically for typing elements */
h1.typing-effect,
.display-3.typing-effect {
    border: none !important;
    border-right: none !important;
    animation: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 0 !important;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.social-links a {
    margin: 0.5rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
    background: var(--primary-color);
}

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

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

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

/* Education Section */
.education-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

.education-card:hover::before {
    height: 8px;
}

.education-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.education-icon {
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

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

.education-info {
    flex: 1;
}

.education-institution {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.education-degree {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-period,
.education-location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.education-period i,
.education-location i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.education-achievements {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.achievements-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.achievements-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.achievements-list li:last-child {
    margin-bottom: 0;
}

/* Experience Section */
.timeline-item {
    position: relative;
    padding: 2rem 0;
    border-left: 3px solid var(--primary-color);
    margin-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 2rem;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 6px var(--primary-color);
    z-index: 2;
}

.timeline-content {
    margin-left: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.timeline-content:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(8px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.timeline-period {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.timeline-organization {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.achievement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Skills Section */
.skill-category {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

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

.skill-header i {
    display: block;
    margin: 0 auto;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-light);
}

/* Projects Section */
.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-tech {
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    display: inline-block;
    border: 1px solid #dee2e6;
}

.project-links .btn {
    margin-right: 0.5rem;
}

/* Certificates Section */
.certificate-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    height: 100%;
    border: 1px solid var(--border-color);
}

.certificate-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.certificate-icon {
    font-size: 3rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.certificate-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificate-issuer {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.certificate-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.certificate-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-form {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.contact-form .form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
}

.contact-form .form-control:focus {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #000 !important;
}

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

.social-footer a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .social-links a {
        margin: 0.3rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 0.3rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline-item {
        margin-left: 1rem;
    }
    
    .timeline-content {
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.25rem 0;
        min-height: 50px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.6rem;
        margin: 0.1rem;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 5px;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.95);
        border-radius: 10px;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .hero-section {
        padding-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .timeline-item {
        margin-left: 0.5rem;
        padding: 1.5rem 0;
    }
    
    .timeline-content {
        margin-left: 1.5rem;
        padding: 1rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-period {
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }
    
    .certificate-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .certificate-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        font-size: 2.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-links a {
        margin: 0.25rem 0;
        width: 80%;
        max-width: 200px;
        text-align: center;
    }
    
    .skill-category {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .social-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .timeline-content {
        margin-left: 1rem;
        padding: 0.8rem;
    }
    
    .certificate-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Animation for scroll-triggered elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.animate-fade-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.animate-fade-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Touch optimization */
.btn, .nav-link, button, a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Better touch feedback */
@media (hover: none) and (pointer: coarse) {
    .btn:active, .nav-link:active, .project-card:active, .certificate-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    

}