/* Modern Design Overrides */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    --primary-color: #0BCEAF;
    --primary-dark: #089c84;
    --secondary-color: #6c757d;
    --dark-bg: #1a1a2e;
    --card-bg: #ffffff;
    --text-color: #2b2b2b;
    --light-text: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: #f3f4f6;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navbar Modernization */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm) !important;
    padding: 1rem 0;
}

.navbar-brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

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

/* Header/Hero Section */
.container-fluid.bg-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    position: relative;
    overflow: hidden;
}

.container-fluid.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(11, 206, 175, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.container-fluid.bg-primary h3 {
    color: var(--primary-color) !important;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.container-fluid.bg-primary h1.display-3 {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.typed-text-output {
    color: #a0aec0 !important;
    font-size: 1.5rem;
    font-weight: 400 !important;
}

.container-fluid.bg-primary img {
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    border: 4px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.container-fluid.bg-primary img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(11, 206, 175, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(11, 206, 175, 0.3);
    transform: translateY(-2px);
}

/* Section Titles */
.display-1.text-uppercase.text-white {
    -webkit-text-stroke: 0 !important;
    color: rgba(0, 0, 0, 0.03) !important;
    font-weight: 900;
    z-index: 0;
}

.position-absolute.text-uppercase.text-primary {
    color: #1a1a2e !important;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1a1a2e 0%, #4a5568 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards & Articles */
.col-lg-4.mb-5 {
    perspective: 1000px;
}

.col-lg-4.mb-5 a {
    display: block;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    height: 100%;
}

.col-lg-4.mb-5 a:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.img-article {
    border-radius: 12px !important;
    margin-bottom: 1.5rem;
}

.blog-date {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(11, 206, 175, 0.4);
    top: 20px;
    right: 20px;
    left: auto;
    transform: none;
}

h5.font-weight-medium {
    font-weight: 700 !important;
    color: #1a1a2e;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

h6.text-secondary {
    color: #718096 !important;
    font-weight: 400;
}

/* About Section */
#about .img-fluid {
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg);
}

#about h3 {
    color: #1a1a2e;
    font-weight: 800;
}

#about h6 {
    color: #4a5568;
}

#about .text-secondary {
    color: #2d3748 !important;
    font-weight: 500;
}

/* Qualification/Timeline */
.border-left.border-primary {
    border-left: 2px solid rgba(11, 206, 175, 0.3) !important;
}

.fa-dot-circle {
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 5px white;
}

/* Skills/Technologies */
#technologies ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#technologies li {
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    color: #4a5568;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#technologies li:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#technologies li a {
    color: inherit;
    text-decoration: none;
}

#technologies h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #1a1a2e;
    border-bottom: 2px solid rgba(11, 206, 175, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Projects */
.service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: 0 10px 20px rgba(11, 206, 175, 0.3);
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem !important;
}

.service-icon i {
    font-size: 2rem;
}

#projects .col-lg-4 {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

#projects .col-lg-4:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.container-fluid.bg-primary.text-white {
    background: #1a1a2e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-social {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    transition: var(--transition);
}

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

/* Scroll to top */
.back-to-top {
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 12px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    color: white;
}

/* Article Pages Specifics */
article {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

pre {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}