/* Theme Variables */
:root {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent: #5fe6c7;
    --accent-hover: #228b71;
}
body.light-mode {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent: #3182ce;
    --accent-hover: #2c5aa0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Navbar Styles */
.navbar {
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    color: var(--accent);
}
.logo:hover {
    color: var(--accent-hover);
}   

.nav-links a {
    color: var(--text-primary);
    transition: color 0.3s, font-weight 0.3s;
}
.nav-links a:focus {
    color: var(--text-primary);
    transition: color 0.3s, font-weight 0.3s;
}
.nav-links a:hover {
    font-weight: bold;
    color: var(--accent); 
}
/* Navbar Toggler */
.navbar-toggler{
    background-color: var(--accent);
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    background: transparent;
    border: 2px solid var(--accent);
    width: 60px;
    height: 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

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

.theme-toggle:focus {
    outline: 2px solid var(--accent);
}
/* Theme Toggle icon */
.themeicon{
    position: absolute;
    font-size: 1.3rem;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    transition: left 0.3s;
    width: 20px;
    height: 20px;
}
body.light-mode .themeicon {
    left: calc(100% - 24px);
}


/* Global Section Styles */
section {
    min-height: 100vh;
    padding: 0 1rem;
    scroll-margin-top: 70px;
}

/* Sections Title Styles */
h2, .about-skills h3 {
    position: relative;
    color: var(--text-primary);
    display: inline-block;
}

h2::after, .about-skills h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

/* Hero Section */
.hero h1 {
    font-size: 4rem;
    animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-button {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 5px;
    transition: all 0.3s;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.cta-button:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
}


/* About Section */
.skills-list {
    gap: 0.5rem 1.1rem;
    list-style: none;
} 

.skills-list li {
    padding: 0.5rem 0.2rem;
    color: var(--text-secondary);
    min-width: 45%;
}

.skills-list li::before {
    content: '▹ ';
    color: var(--accent);
    font-weight: bold;
}

/* Projects Section */
.card{
    max-width: 20rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card-title{
    color: var(--accent);
}
.card-text{
    color: var(--text-secondary);
}
.card-body .btn{
    color: var(--accent);
}
.card-body .btn:hover{
    color: var(--accent-hover);
}
.badges .badge{
    color: var(--accent);
    border: 1px solid var(--accent);
}
.badges .badge:hover{
    background: var(--accent);
    color: var(--bg-primary);
}

/* Contact Section */
.contact-form .form-label {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    background: var(--bg-secondary);
    border: 2px solid rgba(95, 230, 199, 0.2);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(95, 230, 199, 0.1);
}

/* Fix for light mode */
body.light-mode .contact-form .form-control {
    border-color: rgba(49, 130, 206, 0.3);
}

body.light-mode .contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.1);
}

/* Form Validation */
/* Invalid state */
.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* footer styles */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid rgba(59, 71, 82, 0.219);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: auto;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

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

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.quick-links {
    padding-left: 6rem; 
}
/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Back to Top Button */
.btn-back-top {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-back-top i {
    transition: transform 0.3s ease;
}

.btn-back-top:hover i {
    transform: translateY(-3px);
}

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

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Styles */

/* Tablet breakpoint */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.8rem;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    section {
        padding: 1rem 1rem 2rem;
    }
    .hero{
        padding-top: 7rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.5rem;
    }
    .quick-links {
        padding-left: 1rem; 
    }
}