:root {
    --primary-color: #007bff;
    --secondary-color: #6610f2;
    --dark-bg: #ffffff;
    --card-bg: #fdfdfd;
    --text-main: #111111;
    --text-muted: #555555;
    --accent-gradient: linear-gradient(45deg, #007bff 0%, #6610f2 100%);
    --glass-bg: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.1);
}

.text-muted {
    color: var(--text-muted) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.section-padding {
    padding: 100px 0;
}

.gradient-text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main) !important;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background: radial-gradient(circle at 90% 10%, rgba(0, 123, 255, 0.05) 0%, transparent 40%);
}

.hero-tag {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white !important;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
    -webkit-text-fill-color: initial !important;
    /* Override gradient text if present */
    background-clip: initial !important;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 45px;
}

/* Profile Image Container */
.profile-img-wrapper {
    position: relative;
    display: inline-block;
}

.profile-main-img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 2px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    animation: morph 8s ease-in-out infinite;
    transition: all 0.5s ease;
}

.profile-main-img:hover {
    border-color: var(--primary-color);
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.btn-custom {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
    color: white;
}

/* Bento Cards */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.bento-card-1 {
    grid-column: span 2;
}

.bento-card-2 {
    grid-column: span 1;
}

.bento-card-3 {
    grid-column: span 1;
}

.bento-card-4 {
    grid-column: span 1;
}

.bento-card-5 {
    grid-column: span 2;
}

.bento-card-6 {
    grid-column: span 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Portfolio Hover */
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.portfolio-img {
    width: 100%;
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: 0.4s;
    color: var(--text-main);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    background: #fcfcfc;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
    margin-right: 15px;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Form controls for light theme */
.form-control {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 15px;
    border-radius: 10px;
}

.form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Responsive */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card-1,
    .bento-card-2,
    .bento-card-3,
    .bento-card-4,
    .bento-card-5,
    .bento-card-6 {
        grid-column: span 1;
        height: 250px;
    }
}