:root {
    --primary-color: #00ff88;
    --secondary-color: #00d4ff;
    --accent-color: #ff0080;
    --dark-bg: #0a0e27;
    --darker-bg: #050816;
    --card-bg: #1a1f3a;
    --light-bg: #0f1629;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: var(--darker-bg);
    color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* --- Global Styles & Animations --- */
section {
    padding: 100px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Navbar --- */
.navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}


/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for fixed navbar */
}

.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(100px);
}

.hero-section::before {
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 136, 0.15);
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    width: 300px;
    height: 300px;
    background: rgba(0, 212, 255, 0.1);
    bottom: 15%;
    left: 15%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

.profile-img-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.4), 0 0 100px rgba(0, 212, 255, 0.3);
    animation: profileGlow 3s ease-in-out infinite, profileFloat 4s ease-in-out infinite;
}

@keyframes profileGlow {
    50% { box-shadow: 0 0 80px rgba(0, 255, 136, 0.6), 0 0 120px rgba(0, 212, 255, 0.5); }
}

@keyframes profileFloat {
    50% { transform: translateY(-15px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}

.btn-primary-custom, .btn-outline-light {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--darker-bg);
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.6);
    color: var(--darker-bg);
}

.btn-outline-light {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-light:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

/* --- About Section --- */
.about-section {
    background: var(--dark-bg);
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.info-card {
    display: flex;
    align-items: center; /* This is the magic property */
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.info-card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.info-card h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.info-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* --- Skills Section --- */
.skills-section {
    background: var(--darker-bg);
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.skill-card i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card h4 {
    font-weight: 700;
    margin-bottom: 20px;
}

.skill-badge {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 8px;
    margin: 5px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.skill-badge:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- Projects Section --- */
.projects-section {
    background: var(--dark-bg);
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.project-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg), var(--dark-bg));
}

.project-img i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h4 {
    font-weight: 700;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-tech {
    margin-bottom: 20px;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: var(--darker-bg);
}

/* --- Achievements Section --- */
.achievements-section {
    background: var(--darker-bg);
}

.achievement-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    background: var(--light-bg);
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    background: var(--card-bg);
    transform: translateX(10px);
}

.achievement-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.achievement-card span {
    color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--dark-bg);
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-info i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.contact-info h6 {
    color: var(--text-primary);
    font-weight: 700;
}

.contact-info p, .contact-info a {
    color: var(--text-secondary);
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.form-control {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 10px;
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-control:focus {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    border-color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background: var(--darker-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    text-shadow: 0 0 15px var(--primary-color);
}

footer p {
    margin-top: 20px;
    color: var(--text-secondary);
}


/* --- Responsive Design --- */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }
    .hero-content {
        margin-top: 40px;
    }
    .profile-img-container, .profile-img {
        width: 250px;
        height: 250px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content h2 {
        font-size: 1.4rem;
    }
    .about-section .col-lg-5 {
        margin-top: 40px;
    }
    .project-card, .skill-card {
        margin-bottom: 30px;
    }
    .contact-section .col-lg-6:last-child {
        margin-top: 40px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .btn-primary-custom, .btn-outline-light {
        width: 100%;
        margin-bottom: 15px;
    }
    .hero-content .me-3 {
        margin-right: 0 !important;
    }
}