/* Global Styles */
:root {
    --bg-dark: #f0f4f8;
    --text-primary: #1a1d24;
    --text-secondary: #5f6368;
    --accent-blue: #1967d2;
    --accent-purple: #9b72cb;
    --accent-pink: #d96570;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --font-main: 'Poppins', sans-serif;

    /* Light Theme Variables (Default) */
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --card-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: #ffffff;
    --shadow-color: rgba(66, 133, 244, 0.15);
    --input-bg: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
    --bg-dark: #0f1115;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #4285f4;
    --accent-purple: #9b72cb;
    --accent-pink: #d96570;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Dark Theme Variables */
    --navbar-bg: #1718227c;
    --card-bg: rgba(20, 22, 28, 0.6);
    --footer-bg: rgba(10, 10, 12, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(255, 255, 255, 0.03);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
}

/* Background Mesh Gradient Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(66, 133, 244, 0.1), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(155, 114, 203, 0.1), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Navbar Glassmorphism */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* border-bottom: 1px solid var(--glass-border); */
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Antigravity Floating Effect */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 30px var(--shadow-color);
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.3);
    z-index: 10;
}

.icon-box-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.progress-glow .progress-bar {
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.6);
    background: linear-gradient(90deg, #0dcaf0, #4285f4);
}

/* Delays for multiple floating items to feel organic */
.delay-1 {
    animation-delay: 0s;
}

.delay-2 {
    animation-delay: 1s;
}

.delay-3 {
    animation-delay: 2s;
}

/* Gemini-style Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Card Styles */
.card-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.3);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(155, 114, 203, 0.4);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    border-color: var(--accent-blue);
    background: rgba(66, 133, 244, 0.1);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Footer */
footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Form Styles */
.form-control {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
    color: var(--text-primary);
}

::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Modern Glass Project Card Design */
.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px var(--shadow-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px var(--accent-blue-alpha, rgba(66, 133, 244, 0.3));
    border-color: var(--accent-blue);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    width: 100%;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    /* Removed old overlay needed for text on top */
    display: none;
}

.project-content {
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    z-index: 2;
}

.project-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.project-card:hover .project-title {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-footer {
    margin-top: auto;
}

.btn-project {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    background: rgba(66, 133, 244, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(66, 133, 244, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-project:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}


/* Liquid Gradient Animation */
@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
}

.liquid-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.4), rgba(155, 114, 203, 0.4), rgba(217, 101, 112, 0.4));
    animation: morph 8s ease-in-out infinite;
    filter: blur(30px);
    opacity: 0.8;
    z-index: -1;
}

.hero-img-container {
    position: relative;
    display: inline-block;
    padding: 20px;
}

.hero-img {
    max-width: 80%;
    height: auto;
    position: relative;
    z-index: 1;
    /* subtle glass effect on the image itself if transparent */
}


.hover-text-white:hover {
    color: white !important;
    transform: translateY(-3px);
    display: inline-block;
}

.hover-primary:hover {
    color: var(--accent-blue) !important;
    transform: translateY(-3px);
    display: inline-block;
    transition: all 0.3s ease;
}



/* --------------------------------------------- */