:root {
    /* Primary Colors */
    --primary-dark: #0a1929;
    --secondary-dark: #1e3a5f;
    --accent-blue: #3182ce;
    --light-blue: #63b3ed;
    --dark-blue: #2c5282;
    
    /* Text Colors */
    --text-dark: #1a202c;
    --text-gray: #718096;
    --text-light: #f7fafc;
    
    /* Background Colors */
    --card-bg: #ffffff;
    --light-bg: #f7fafc;
    --hover-bg: #edf2f7;
    --navbar-bg: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    --navbar-bg-scroll: linear-gradient(135deg, rgba(26, 32, 44, 0.98), rgba(45, 55, 72, 0.98));
    
    /* Border and Shadow Colors */
    --border-color: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-blue: rgba(49, 130, 206, 0.15);
    --shadow-blue-hover: rgba(49, 130, 206, 0.3);
    --shadow-blue-strong: rgba(49, 130, 206, 0.4);
    
    /* Project Colors */
    --success-green: #38a169;
    --success-green-light: #48bb78;
    --warning-orange: #ed8936;
    --warning-orange-light: #f6ad55;
    --danger-red: #e53e3e;
    --danger-red-light: #fc8181;
    --purple: #805ad5;
    --purple-light: #b794f6;
    --teal: #319795;
    --teal-light: #4fd1c7;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-strong: rgba(255, 255, 255, 0.3);
    --glass-hover: rgba(255, 255, 255, 0.8);
    
    /* Background Gradients */
    --bg-gradient-1: rgba(74, 144, 226, 0.08);
    --bg-gradient-2: rgba(123, 179, 240, 0.06);
    --bg-gradient-3: rgba(56, 161, 105, 0.04);
    --bg-gradient-4: rgba(237, 137, 54, 0.04);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--bg-gradient-1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--bg-gradient-2) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, var(--bg-gradient-3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -5;
    animation: backgroundShift 15s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 50%, var(--bg-gradient-1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, var(--bg-gradient-2) 0%, transparent 50%),
            radial-gradient(circle at 60% 20%, var(--bg-gradient-3) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(circle at 80% 30%, var(--bg-gradient-2) 0%, transparent 50%),
            radial-gradient(circle at 20% 70%, var(--bg-gradient-1) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, var(--bg-gradient-4) 0%, transparent 50%);
    }
}

/* Particles Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
}

/* Navigation */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-medium);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--light-blue) !important;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--shadow-blue-hover);
    transition: all 0.3s ease;
}

.brand-text {
    color: var(--light-blue);
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--text-light) !important;
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-blue-strong);
}

.navbar-brand:hover .brand-text {
    color: var(--text-light);
}

.navbar-nav .nav-link {
    color: var(--text-gray) !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Navigation link hover improvements */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-light) !important;
}

/* Hamburger Menu Styling */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.2);
}

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

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--navbar-bg);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 0 50px;
    display: block;
    position: relative;
    z-index: 10;
}

/* Page-specific section adjustments */
body:not([data-page="home"]) .section {
    min-height: auto;
    padding: 120px 0 50px;
}

/* Optimize rendering for multi-page */
.section {
    contain: layout style;
}

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

/* Home Section */
#home {
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease;
}

/* Hero Image */
.hero-image {
    position: relative;
    text-align: center;
    z-index: 5;
}

.hero-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--dark-blue);
    box-shadow: 0 20px 40px var(--shadow-blue-hover);
    background: linear-gradient(135deg, var(--dark-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: var(--text-light);
    margin: -50px auto 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.hero-avatar:hover {
    box-shadow: 0 25px 50px var(--shadow-blue-strong);
    transform: scale(1.02);
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--dark-blue), var(--accent-blue));
    border: none;
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--shadow-blue-hover);
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-blue));
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-blue-strong);
    text-decoration: none;
}

.btn-outline-custom {
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    background: transparent;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--dark-blue);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-blue-strong);
    text-decoration: none;
}

/* Hero Stats Styling */
.hero-stats {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 0 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1;
}

.stat-plus,
.stat-symbol {
    font-size: 1.4rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-top: 8px;
    line-height: 1.2;
}

/* Cards */
.card-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-blue);
}

/* Skills Section */
.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-strong);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-blue);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-card {
    display: flex;
    align-items: center;
    background: var(--glass-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    background: var(--glass-bg);
    border-color: var(--accent-blue);
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-blue);
}

.tool-icon-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    box-shadow: 0 4px 15px var(--shadow-blue-hover);
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.tool-level {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.proficiency-segments {
    display: flex;
    gap: 3px;
    margin-left: 15px;
}

.segment {
    width: 8px;
    height: 8px;
    background: var(--hover-bg);
    border-radius: 50%;
    transition: all 0.6s ease-in-out;
    border: 1px solid var(--border-color);
}

.segment.filled {
    background: linear-gradient(135deg, var(--dark-blue), var(--accent-blue));
    border-color: var(--dark-blue);
    box-shadow: 0 0 8px var(--shadow-blue-hover);
    transform: scale(1.1);
}

/* Legacy progress bar styling for backward compatibility */
.proficiency-bar {
    width: 60px;
    height: 6px;
    background: var(--hover-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 15px;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dark-blue), var(--accent-blue));
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
    width: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-blue);
    box-shadow: 0 0 10px var(--shadow-blue-strong);
}

/* Projects */
.project-card {
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-blue);
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    border-color: var(--dark-blue);
    box-shadow: 0 5px 15px var(--shadow-blue-hover);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: var(--bg-gradient-1);
    color: var(--dark-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--dark-blue);
}

/* Contact Form */
.form-control,
.form-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--card-bg);
    border-color: var(--dark-blue);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--shadow-blue-hover);
}

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

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-gradient-1);
    border: 2px solid var(--dark-blue);
    border-radius: 50%;
    color: var(--dark-blue);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--dark-blue);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-blue-strong);
    text-decoration: none;
}

/* Section Headers */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Pulsing Data Points */
.data-points {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--light-blue);
    border-radius: 50%;
    animation: dataPointPulse 3s ease-in-out infinite;
    box-shadow: 0 0 15px var(--light-blue);
    z-index: 5;
}

@keyframes dataPointPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.5); 
        opacity: 0.8;
    }
}

.point-1 { top: 15%; left: 20%; animation-delay: 0s; }
.point-2 { top: 70%; right: 20%; animation-delay: 1s; }
.point-3 { top: 40%; left: 10%; animation-delay: 2s; }
.point-4 { bottom: 30%; right: 30%; animation-delay: 1.5s; }

/* Footer Styles */
footer a:hover {
    color: var(--light-blue) !important;
}

.footer-title:hover .footer-brand-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-blue-strong);
}

.footer-title:hover .footer-brand-text {
    color: var(--text-light);
}

/* Scroll-based navigation adjustments */
html {
    scroll-behavior: smooth;
}

/* Mobile and Tablet Responsive Design */

/* Large screens - position hero image between top and middle */
@media (min-width: 1200px) {
    .hero-image {
        position: absolute;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
    }
    
    .hero-avatar {
        margin: 0 auto;
    }
    
    #home .col-lg-6.order-1.order-lg-2 {
        position: relative;
        height: 100vh;
    }
}

/* Large tablets and small desktops */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-avatar {
        width: 240px;
        height: 240px;
        font-size: 100px;
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-collapse {
        flex-direction: column;
    }
    
    .hero-avatar {
        width: 220px;
        height: 220px;
        font-size: 90px;
        margin: 0 auto 30px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .hero-content .hero-subtitle {
        text-align: center;
    }
    
    .hero-content .hero-description {
        text-align: center;
    }
    
    .hero-content .d-flex {
        justify-content: center;
    }
    
    #home .min-vh-100 {
        min-height: auto !important;
    }
    
    /* Tablet layout - image first */
    #home .row.align-items-center {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Hero content (text) comes second on tablet */
    #home .col-lg-6.order-2 {
        margin-top: 40px;
        text-align: center;
    }
    
    /* Hero image comes first on tablet */
    #home .col-lg-6.order-1 {
        text-align: center;
    }
    
    .section {
        padding: 70px 0 40px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Mobile Hero Section */
    #home {
        padding-top: 90px !important;
        min-height: auto !important;
    }
    
    #home .container {
        padding-top: 20px;
    }
    
    /* Force mobile layout */
    #home .row.align-items-center {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    #home .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Hero content (text) comes second on mobile */
    #home .col-lg-6.order-2 {
        margin-top: 30px !important;
        padding-top: 20px;
    }
    
    /* Hero image comes first on mobile */
    #home .col-lg-6.order-1 {
        margin-bottom: 0 !important;
    }
    
    .hero-image {
        text-align: center !important;
        margin-bottom: 20px;
    }
    
    .hero-avatar {
        width: 180px !important;
        height: 180px !important;
        font-size: 70px !important;
        margin: 0 auto 20px !important;
    }
    
    .hero-content {
        text-align: center !important;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .hero-welcome {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        margin: 25px 0 !important;
        padding: 20px 0 !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
    }
    
    .stat-plus,
    .stat-symbol {
        font-size: 1.1rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 25px;
    }
    
    /* Mobile Navigation */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    /* Mobile Footer Brand */
    .footer-brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-brand-text {
        font-size: 1.2rem;
    }
    
    /* Mobile Buttons */
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 10px 25px;
        font-size: 1rem;
        width: auto;
        margin: 5px;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
    }
    
    .hero-content .d-flex a {
        width: 200px;
        text-align: center;
    }
    
    /* Mobile sections */
    .section {
        padding: 60px 0 30px !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Mobile cards */
    .card-custom {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .project-card {
        margin-bottom: 25px;
    }
    
    /* Mobile Skills */
    .tools-grid {
        gap: 12px;
    }
    
    .tool-card {
        padding: 12px;
    }
    
    .tool-icon-placeholder {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Mobile Timeline */
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item {
        margin-bottom: 30px;
    }
    
    /* Mobile Form */
    .form-control,
    .form-select {
        margin-bottom: 15px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content h1 {
        font-size: 1.9rem !important;
    }
    
    .hero-avatar {
        width: 160px !important;
        height: 160px !important;
        font-size: 60px !important;
    }
    
    .hero-stats .row {
        text-align: center;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 1.4rem !important;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 180px;
        padding: 10px 20px;
    }
    
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    /* Small Mobile Footer Brand */
    .footer-brand-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-brand-text {
        font-size: 1.1rem;
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Utility Classes for Inline Styles */
.text-dark-blue {
    color: var(--dark-blue);
}

.text-accent-blue {
    color: var(--accent-blue);
}

.text-light-blue {
    color: var(--light-blue);
}

.text-gray-custom {
    color: var(--text-gray);
}

.section-header {
    color: var(--dark-blue);
}

.experience-title {
    color: var(--dark-blue);
}

.experience-company {
    color: var(--accent-blue);
}

.experience-date {
    color: var(--text-gray);
}

.project-title {
    color: var(--dark-blue);
}

.project-description {
    color: var(--text-gray);
}

.contact-icon {
    font-size: 2rem;
    color: var(--dark-blue);
}

.footer-bg {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: var(--text-light);
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-title {
    color: var(--light-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--shadow-blue-hover);
    transition: all 0.3s ease;
}

.footer-brand-text {
    color: var(--light-blue);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-text {
    color: var(--text-gray);
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-separator {
    border-color: var(--border-color);
    margin: 30px 0 20px;
}

/* Project Image Gradients */
.project-gradient-1 {
    background: linear-gradient(135deg, var(--dark-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.project-gradient-2 {
    background: linear-gradient(135deg, var(--success-green), var(--success-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.project-gradient-3 {
    background: linear-gradient(135deg, var(--warning-orange), var(--warning-orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.project-gradient-4 {
    background: linear-gradient(135deg, var(--danger-red), var(--danger-red-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.project-gradient-5 {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.project-gradient-6 {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.hero-welcome {
    color: var(--dark-blue);
    letter-spacing: 2px;
}

.hero-role {
    color: var(--dark-blue);
}

.hero-description {
    color: var(--text-gray);
}

/* Performance Optimizations */
.card-custom, .project-card, .tool-card {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-avatar {
        animation: none !important;
    }
    
    .segment {
        transition: none !important;
    }
}

/* Focus indicators for better accessibility */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-to-main:focus {
    top: 6px;
}
