:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --dark-color: #0D47A1;
    --navbar-color: #0a3d91; /* NEW - Even darker than hero */
    --light-bg: #F8F9FA;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
    --success-color: #28A745;
}
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-color) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(10, 61, 145, 0.98) !important;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: white !important;
    transition: color 0.3s;
}

.navbar-brand i {
    font-size: 1.6rem;
    margin-right: 8px;
    vertical-align: middle;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 15px;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0 !important;
}

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

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

.nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::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 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" fill-opacity="0.05"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-custom {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: var(--dark-color);
    background-color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background-color: white;
    color: var(--primary-color) !important;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 20px;
}

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

.section-title i {
    color: var(--primary-color);
}

/* Portfolio Cards */
.portfolio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 200px;
}

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-size: 4rem;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.portfolio-tags {
    margin: 15px 0;
}

.portfolio-tags .badge {
    margin-right: 8px;
    margin-bottom: 5px;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

.portfolio-links a {
    text-decoration: none;
    font-size: 0.9rem;
}

/* Portfolio card images */
.portfolio-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.portfolio-img img:hover {
    transform: scale(1.05);
}

/* Skills Section */
.skill-category {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.skill-category h3 {
    color: var(--dark-color);
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.4rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.skill-list li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.skill-list li i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content h4 {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.about-content h4 i {
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 20px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-control {
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.15);
}

.contact-info {
    text-align: center;
    margin-top: 40px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-link i {
    margin-right: 8px;
    font-size: 1.3rem;
}

.social-links-inline a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links-inline a:hover {
    color: var(--secondary-color);
}

.social-links-inline a i {
    font-size: 1.3rem;
    vertical-align: middle;
}

/* Resume Button in Navbar */
.nav-link.resume-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px !important;
    border-radius: 25px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.nav-link.resume-btn:hover {
    background: white;
    color: var(--primary-color) !important;
}

@media (max-width: 992px) {
    .nav-link.resume-btn {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
        text-align: center;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-5px);
    border-color: white;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .nav-link::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
}

@media (max-width: 576px) {
    .portfolio-content {
        padding: 20px;
    }
    
    .skill-category {
        padding: 30px 20px;
    }
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease;
}