
:root {
    --primary-color: #6f34fe;
    --dark-color: #211e39;
    --light-color: #f8f9fa;

    /* Light mode colors */
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --navbar-bg: #ffffff;
    --footer-bg: #211e39;
    --footer-text: #ffffff;
    --hero-bg: linear-gradient(33deg, rgba(242,242,255,1) 0%, rgba(235,249,255,1) 100%);
    --section-bg: #f8f9fa;
    --section-alt-bg: #ffffff;
    --progress-bg: #ededed;
    --form-bg: #ffffff;
    --form-text: #333333;
    --form-border: #dee2e6;
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #ffffff;
    --card-bg: #1e1e1e;
    --navbar-bg: #1e1e1e;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --hero-bg: #000000;
    --section-bg: #121212;
    --section-alt-bg: #1a1a1a;
    --progress-bg: #2d2d2d;
    --form-bg: #ffffff;
    --form-text: #1e1e1e;
    --form-border: #444444;
}

/* Custom Button Colors */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5d2bd6;
    border-color: #5d2bd6;
}

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

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

/* Skill Progress Bars */
.progress-bar {
    background-color: var(--primary-color);
}

.progress-value {
    color: var(--primary-color);
    font-weight: 600;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

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

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

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--hero-bg);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
    color: var(--text-color);
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    padding-right: 50px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color);
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
    color: var(--text-color);
}

.hero-image {
    position: relative;
    animation: slideInFromRight 1.5s ease-out forwards;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Sections */
section {
    padding: 80px 0;
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
    color: var(--text-color);
}

.section-alt {
    background-color: var(--section-alt-bg);
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

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

/* Cards */
.card {
    background-color: var(--card-bg);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
}

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

/* Progress Bars */
.progress {
    background-color: var(--progress-bg);
    height: 10px;
    border-radius: 5px;
}

.progress-bar {
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    transition: background-color 0.3s ease;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
}

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

.social-icons a {
    color: var(--footer-text);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

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

/* Form Elements */
.form-control {
    background-color: var(--form-bg);
    color: var(--form-text);
    border: 1px solid var(--form-border);
}

.form-control:focus {
    background-color: var(--form-bg);
    color: var(--form-text);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(111, 52, 254, 0.25);
}

/* Badges */
.badge.bg-primary {
    background-color: var(--light-color) !important;
    color: #ae8ff7;
    border-color: #111;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}
