/* Variables */
:root {
    --bg-color: #f9f9f9;
    --text-color: #222;
    --primary-color: #111;
    --accent-color: #0069d9;
    --card-bg: #fff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --transition: all 0.3s ease;
    --footer-bg: #111;
    --footer-text: #fff;
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #fff;
    --accent-color: #4da3ff;
    --card-bg: #1e1e1e;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(18, 18, 18, 0.95);
    --footer-bg: #000;
    --footer-text: #ccc;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Loader */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    color: white;
}

.lights {
    display: flex;
    gap: 1rem;
}

.light {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

.light:nth-child(2) {
    animation-delay: 0.3s;
}

.light:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes blink {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

nav .menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul a {
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

nav ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav ul a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#theme-toggle {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Hero Section */
.jumbotron .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap-reverse;
}

.jumbo-desc {
    flex: 1;
    min-width: 300px;
}

.jumbo-desc h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.jumbo-desc .p1 {
    font-size: 1.5rem;
    font-weight: 500;
}

.jumbo-desc .p2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.jumbo-desc .p3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.jumbo-img {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.jumbo-img img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.button {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-img img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.about-desc {
    flex: 1;
    font-size: 1.1rem;
}

/* Cards (Projects & Certificates) */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    width: 300px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
}

.card .imgBg {
    height: 200px;
    overflow: hidden;
}

.card .imgBg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .imgBg img {
    transform: scale(1.1);
}

.card-desc {
    padding: 1.5rem;
    text-align: center;
}

.card-desc h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-desc a {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 20px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.card-desc a:hover {
    background: var(--primary-color);
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tool-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 700;
}

/* Contact Section */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-color);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 0;
    text-align: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.socials a {
    color: #fff;
    font-size: 1.5rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background: #000;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    nav ul.active {
        right: 0;
    }

    .jumbotron .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .jumbo-desc h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Project Row Layout (Restored Content Style) */
.project-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-info {
    flex: 1;
    min-width: 280px;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.project-media {
    flex: 1;
    min-width: 280px;
}

.project-media img,
.project-media video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.responsive-video {
    width: 100%;
    height: auto;
}