:root {
    --primary-bg: #ffffff;
    --secondary-bg: #eeeff0;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --accent: #1a3a5f;
    --accent-light: #2c5282;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --accent: #63b3ed;
    --accent-light: #90cdf4;
    --border-color: #343a40;
    --card-bg: #1e1e1e;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

h1,
h2 {
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg,
            var(--accent) 0%,
            var(--accent-light) 50%,
            #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Enhanced gradient for main headings */
.hero h1,
.section-title {
    background: linear-gradient(135deg,
            var(--accent) 0%,
            var(--accent-light) 30%,
            #4a90e2 60%,
            #6bb6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
}

/* Dark mode specific gradients */
[data-theme="dark"] h1,
[data-theme="dark"] h2 {
    background: linear-gradient(135deg,
            #63b3ed 0%,
            #90cdf4 30%,
            #a0d4f7 60%,
            #4fd1c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .section-title {
    background: linear-gradient(135deg,
            #63b3ed 0%,
            #90cdf4 25%,
            #4fd1c7 50%,
            #68d391 75%,
            #a0d4f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
}

/* Gradient animation */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {

    h1,
    h2,
    .hero h1,
    .section-title {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: var(--accent) !important;
    }

    [data-theme="dark"] h1,
    [data-theme="dark"] h2,
    [data-theme="dark"] .hero h1,
    [data-theme="dark"] .section-title {
        color: #63b3ed !important;
    }
}

/* Special gradient for navbar brand */
.navbar-brand {
    background: linear-gradient(135deg,
            var(--accent) 0%,
            var(--accent-light) 50%,
            #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

[data-theme="dark"] .navbar-brand {
    background: linear-gradient(135deg,
            #63b3ed 0%,
            #90cdf4 50%,
            #4fd1c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Metric numbers gradient */
.metric-number {
    background: linear-gradient(135deg, var(--accent) 0%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .metric-number {
    background: linear-gradient(135deg, #63b3ed 0%, #00d957 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

/* Navigation */
.navbar {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px var(--shadow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

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

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-color: var(--text-secondary);
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    margin-top: 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
}

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

.btn-outline-primary:hover {
    background-color: var(--accent);
    color: var(--primary-bg);
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Cards */
.card {
    background-color: var(--primary-bg);
    border: 1px solid var(--secondary-bg);
    color: var(--text-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    color: var(--text-secondary);
    transform: translateY(-5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Section Styling */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

/* About Section */
.about-fact {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.about-fact i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.metric-card {
    text-align: center;
    padding: 1.5rem;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--accent);
    font-weight: 500;
}

/* Skills Section */
.skill-category {
    margin-bottom: 2rem;
}

.skill-category h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 20px;
    margin: 2px 4px 2px 0;
    font-size: 0.85rem;
}

/* Experience Section */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.46rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--primary-bg);
}

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow);
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Projects Section */
.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
            var(--accent) 0%,
            var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-metric {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tech-badge {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Resume Section */
.resume-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
}

/* Contact Section */
.contact-info {
    text-align: center;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

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

.contact-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px var(--shadow);
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--primary-bg);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-links a {
    margin-right: 1.5rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Theme & Language Controls */
.theme-lang-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-toggle,
.lang-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 600;
    z-index: 9999;
}

.theme-toggle:hover,
.lang-toggle:hover {
    transform: translateY(-3px);
}

/* Video Modal Styles */
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-close {
    filter: invert(0);
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--secondary-bg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.btn-outline-secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--text-secondary);
    color: var(--primary-bg);
    border-color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -0.5rem;
    }

    .hero-image-container {
        margin-top: 2rem;
    }

    .theme-lang-container {
        bottom: 15px;
        right: 15px;
    }

    .theme-toggle,
    .lang-toggle {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .video-container {
        padding-bottom: 75%;
        /* Adjust for mobile shorts aspect ratio */
    }

    .contact-item {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    .contact-item i {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.seo-links-footer {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2rem;
}

.seo-links-footer a {
  color: #777;
  text-decoration: none;
}

.seo-links-footer a:hover {
  text-decoration: underline;
}
