/* ============================================================
   Root Variables
============================================================ */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #4bb543;
    --error-color: #ff3333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

/* ============================================================
   Reset & Base Styles
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.center {
    text-align: center;
}

.center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about ul {
    list-style-type: none;
}

.about a {
    color: #3f37c9;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.about a:hover {
    opacity: 1;
    color: #4361ee;
}

/* ============================================================
   Header & Navigation
============================================================ */
.main-header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo span,
.footer-bottom a {
    text-decoration: none;
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    left: 3%;
    width: 94%;
}

/* ============================================================
   Hero Section
============================================================ */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(76, 201, 240, 0.1) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #333;
    transition: var(--transition);
}

/* ============================================================
   Projects Section
============================================================ */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-title {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-card h3,
.project-card p {
    margin-bottom: 1rem;
    color: var(--dark-color);
    transition: var(--transition);
}

/* ============================================================
   Content Section
============================================================ */
.content-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.content-section h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

/* ============================================================
   Buttons
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon {
    margin-right: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #f0f4ff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ============================================================
   Footer
============================================================ */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================================
   Theme Switch
============================================================ */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-left: 20px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a2e;
    border-radius: 34px;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3.5px;
    background-color: white;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

input:checked+.slider {
    background-color: #4cc9f0;
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.slider .sun,
.slider .moon {
    position: absolute;
    bottom: -2px;
    font-size: 14px;
    line-height: 30px;
    user-select: none;
    pointer-events: none;
    transition: var(--transition);
}

.slider .sun {
    left: 8px;
    opacity: 0;
}

.slider .moon {
    right: 8px;
    opacity: 1;
}

input:checked+.slider .sun {
    opacity: 1;
}

input:checked+.slider .moon {
    opacity: 0;
}

/* ============================================================
   Mobile Menu
============================================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle.rotated {
    transform: rotate(90deg);
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: 0.3s ease;
}

@media (max-width: 768px) {
    .slider:before {
        height: 18px;
        width: 18px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--dark-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: var(--transition);
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .main-nav li {
        width: 100%;
        justify-content: center;
    }

    .main-nav a {
        font-size: 1.4rem;
        width: 100%;
    }

    .theme-switch {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }
}

/* ============================================================
   Splash Screen
============================================================ */
#splash-screen {
    position: fixed;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-content {
    font-family: monospace;
    text-align: center;
    color: var(--dark-color);
    animation: fadeIn 1s ease-in-out;
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

#splash-screen.hidden {
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ============================================================
   Skill Div
============================================================ */

.skills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    border: 2px solid #78828d;
    padding: 1rem;
    padding-top: 2rem;
    width: 50%;
    margin-top: 20px;

}

.skills::after {
    content: "";
    position: absolute;
    top: -20%;
    left: 5%;
    color: transparent;
    font-size: 16px;
}

.skills i {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}

.skills img {
    width: 40px;
    height: auto;
}

.tooltip {
    position: absolute;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.bx {
    font-family: boxicons !important;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    display: inline-block;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}