:root {
    /* Updated color scheme as requested */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --dark-color: #121212;
    --light-color: #f5f5f5;
    --yellow-accent: #FFD700;
    --yellow-light: #FFF8DC;
    --neutral-bg: #f9f9f9;
    --neutral-dark: #333333;
    --neutral-light: #ffffff;
    --pop-color-1: #FF6B6B;
    --pop-color-2: #4ECDC4;
    --pop-color-3: #FFD166;
}

/* Mobile-first approach */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: var(--light-color);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Typography with reduced sizes */
h1 { font-size: 1.8rem; line-height: 1.2; }
h2 { font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.1rem; line-height: 1.4; }
h5 { font-size: 1rem; line-height: 1.4; }
h6 { font-size: 0.9rem; line-height: 1.4; }

p, li, a, span {
    font-size: 0.875rem;
}

.lead {
    font-size: 1rem;
}

.display-4 {
    font-size: 2rem !important;
}

/* Mobile Sidebar Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--yellow-accent);
    cursor: pointer;
    z-index: 1002;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--dark-color);
    z-index: 1001;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

.mobile-sidebar-header {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.mobile-sidebar-header h3 {
    color: var(--yellow-accent);
    font-size: 1.2rem;
    margin: 0;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 10px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mobile-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--yellow-accent);
    color: var(--dark-color);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
}

/* Main container with sidebar layout */
.main-container {
    display: flex;
    min-height: 100vh;
    padding-top: 20px; /* No top nav bar now, just a bit of spacing */
}

.sidebar {
    width: 250px;
    background: var(--dark-color);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar-top-action {
    padding: 16px 18px 0 18px;
}

.sidebar-top-action .btn {
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.4);
    color: #fff;
}

.sidebar-top-action .btn:hover {
    background: var(--yellow-accent);
    color: var(--dark-color);
    border-color: var(--yellow-accent);
}

.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.main-content.sidebar-active {
    margin-left: 250px;
}

/* Sidebar content */
.sidebar-profile {
    text-align: center;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--yellow-accent);
    margin-bottom: 15px;
}

.sidebar-profile h4 {
    color: var(--yellow-accent);
    font-size: 1rem;
    margin-bottom: 5px;
}

.sidebar-profile p {
    font-size: 0.8rem;
    color: #aaa;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--yellow-accent);
    color: var(--yellow-accent);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-footer p {
    font-size: 0.8rem;
    color: #aaa;
}

/* Navigation */
.navbar {
    background-color: var(--dark-color);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--yellow-accent) !important;
}

.navbar-brand i {
    margin-right: 8px;
}

.navbar .nav-link {
    font-weight: 500;
    margin: 0 0.25rem;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.navbar .nav-link:hover, 
.navbar .nav-link.active {
    color: var(--yellow-accent) !important;
}

/* Home Page Specific Styles */
body.home-page {
    background: var(--dark-color);
    color: white;
}

.home-page .hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 40px 0;
    color: white;
    position: relative;
}

.home-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.05;
}

/* Hero image frame and location badge */
.image-frame {
    position: relative;
    display: inline-block;
    padding: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, var(--yellow-accent), transparent 60%),
                radial-gradient(circle at bottom right, var(--secondary-color), transparent 60%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.image-frame img {
    border: 3px solid rgba(255, 255, 255, 0.6);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.8rem;
    backdrop-filter: blur(6px);
}

.home-page .hero-btns .btn-primary {
    background: var(--yellow-accent);
    border-color: var(--yellow-accent);
    color: var(--dark-color);
    font-size: 0.875rem;
    padding: 8px 20px;
}

.home-page .hero-btns .btn-outline-light {
    background: transparent;
    border-color: var(--yellow-accent);
    color: var(--yellow-accent);
    font-size: 0.875rem;
    padding: 8px 20px;
}

.home-page .hero-btns .btn-outline-light:hover {
    background: var(--yellow-accent);
    color: var(--dark-color);
}

.home-page .section-title {
    color: var(--yellow-accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.home-page .section-title::after {
    background-color: var(--yellow-accent);
    width: 40px;
    height: 2px;
    bottom: -8px;
}

.home-page .section-subtitle {
    color: #aaa;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Simple vertical timeline on home about preview */
.timeline-simple {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
}

.timeline-simple::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--yellow-accent), rgba(255,255,255,0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 14px;
    padding-left: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow-accent);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.25);
}

.timeline-date {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.timeline-content {
    font-size: 0.85rem;
}

.home-page .skill-item,
.home-page .project-card,
.home-page .achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.home-page .skill-item:hover,
.home-page .project-card:hover,
.home-page .achievement-card:hover {
    transform: translateY(-5px);
    border-color: var(--yellow-accent);
}

.home-page .progress-bar {
    background: var(--yellow-accent);
}

.home-page .tech-tag {
    background: rgba(255, 215, 0, 0.1);
    color: var(--yellow-accent);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.home-page .contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
    padding: 10px 15px;
    height: 40px;
}

.home-page .contact-form .form-control:focus {
    border-color: var(--yellow-accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.home-page .contact-form textarea.form-control {
    height: auto;
    min-height: 100px;
}

.home-page .contact-info {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.home-page .contact-info h5 {
    color: var(--yellow-accent);
}

.home-page .contact-info li {
    font-size: 0.85rem;
}

/* About Page Specific Styles */
body.about-page {
    background: var(--neutral-bg);
    color: var(--neutral-dark);
}

.about-page .about-section {
    background: var(--neutral-light);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.about-page .section-title {
    color: var(--neutral-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.about-page .section-title::after {
    background: var(--pop-color-1);
    width: 40px;
    height: 2px;
    bottom: -8px;
}

.about-page .journey-step {
    background: white;
    border-left: 4px solid var(--pop-color-2);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.about-page .step-number {
    display: inline-block;
    background: var(--pop-color-2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-weight: bold;
}

.about-page .personal-info-card,
.about-page .values-card {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.about-page .personal-info-card .card-header,
.about-page .values-card .card-header {
    background: none;
    border-bottom: 2px solid var(--pop-color-3);
    color: var(--neutral-dark);
    font-size: 1.1rem;
    padding: 0 0 10px 0;
    margin-bottom: 15px;
}

.about-page .value-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
}

.about-page .value-icon {
    font-size: 1.2rem;
    color: var(--pop-color-2);
    margin-right: 12px;
    flex-shrink: 0;
}

/* Education, Experience, Achievements, Projects, Gallery Pages */
.edu-page .education-card,
.history-page .experience-card,
.achieve-page .achievement-card,
.projects-page .project-card,
.gallery-page .gallery-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.edu-page .education-card:hover,
.history-page .experience-card:hover,
.achieve-page .achievement-card:hover,
.projects-page .project-card:hover,
.gallery-page .gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}

/* Cards - Smaller and consistent */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    margin-bottom: 15px;
}

.card-body {
    padding: 18px;
}

.card-header {
    padding: 12px 18px;
    background: rgba(52, 152, 219, 0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Forms */
.form-control {
    font-size: 0.875rem;
    padding: 8px 12px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-size: 0.875rem;
    margin-bottom: 5px;
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* Gallery */
.gallery-image {
    height: 180px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 12px;
}

.gallery-info h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.gallery-filters .btn {
    margin: 0 0.25rem 0.5rem;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 25px 0;
    margin-top: 30px;
    font-size: 0.875rem;
}

.social-links a {
    font-size: 1rem;
    margin: 0 8px;
    color: #aaa;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--yellow-accent);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
    }
    
    .navbar-brand {
        margin-left: 40px;
        font-size: 1.1rem;
    }

    .main-container {
        padding-top: 20px;
    }
    
    .sidebar {
        top: 0;
        height: 100vh;
    }
    
    .main-content {
        padding: 15px;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    
    .display-4 {
        font-size: 1.8rem !important;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .col, [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content.sidebar-active {
        margin-left: 220px;
    }
}

@media (min-width: 993px) {
    .mobile-nav-toggle {
        display: none;
    }
    
    .mobile-sidebar {
        display: none;
    }
    
    .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 250px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}