/* =========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================= */
:root {
    --purple: #8a2be2;
    --purple-dark: #7a1fdb;
    --black-bg: #0f0715;
    --black-card: #140b1c;
    --text-gray: #b1b1b1;
    --white: #ffffff;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--black-bg);
    color: var(--white);
    overflow-x: hidden;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    background-color: rgba(15, 7, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s;
}

.text-purple {
    color: var(--purple) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--purple) !important;
}

.btn-hire {
    background: var(--purple);
    color: white !important;
    border-radius: 50px;
    padding: 8px 25px !important;
    transition: 0.3s;
}

.btn-hire:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    padding: 100px 0;
}

.btn-purple {
    background-color: var(--purple);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.btn-purple:hover {
    background-color: var(--purple-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.profile-img {

    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
    transition: 0.5s;
}

.profile-img:hover {
    transform: rotate(2deg) scale(1.02);
}

/* =========================================
   4. SKILLS SECTION (Gerold Light Style)
   ========================================= */
.bg-black-2 {
    background-color: #09030e;
}

.skill-card {
    background: var(--black-card);
    border: 1px solid rgba(138, 43, 226, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: 0.4s;
}

.skill-card:hover {
    background: #1e112a;
    border-color: var(--purple);
    transform: translateY(-10px);
}

.skill-card i {
    transition: 0.4s;
}

.skill-card:hover i {
    transform: scale(1.2);
}

/* =========================================
   5. PROJECTS SECTION (Scroll/Hover logic)
   ========================================= */
.portfolio-item {
    background: var(--black-card);
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    transition: 0.5s ease;
    margin-bottom: 30px;
}

.portfolio-item img {
    border-radius: 15px;
    transition: 0.5s;
}

.portfolio-item:hover {
    background: #1e112a;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Asymmetric scrolling (Even columns sit lower) */
@media (min-width: 992px) {
    .portfolio-column:nth-child(even) {
        margin-top: 80px;
    }
}

/* =========================================
   6. RESUME / EDUCATION
   ========================================= */
.resume-item {
    background: var(--black-card);
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.05);
    transition: 0.3s;
}

.resume-item:hover {
    border-color: var(--purple);
    transform: translateX(5px);
}

/* =========================================
   7. CONTACT SECTION
   ========================================= */
.contact-form .form-control {
    background: #c1bbc6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
}

.contact-form .form-control:focus {
    background: #2a183d;
    border-color: var(--purple);
    box-shadow: none;
    color: white;
}

.contact-info li {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.contact-info i {
    width: 30px;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

/* =========================================
   9. UTILITIES
   ========================================= */
.text-secondary {
    color: var(--text-gray) !important;
}

[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}
.bg-black-2 {
    background-color: #0f0715; /* Dark background matching the theme */
}

.skill-box {
    background: #140b1c;
    border-radius: 25px;
    padding: 30px 10px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.skill-icon {
    font-size: 40px;
    color: #8a2be2; /* Your purple theme color */
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.skill-percent {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
}

.skill-box p {
    color: #8a2be2;
    font-size: 14px;
    margin-bottom: 0;
    font-weight: 500;
}

/* Hover Effect - Gerold Light Style */
.skill-box:hover {
    background: #2a1454; /* Darker purple background on hover */
    border-color: #8a2be2;
    transform: translateY(-5px);
}

.skill-box:hover .skill-icon {
    color: #fff; /* Icon turns white on purple background */
    transform: scale(1.1);
}

.skill-box:hover p {
    color: #fff; /* Text turns white on hover */
}
/* Projects Grid Styling */
.bg-black-bg {
    background-color: #0f0715;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 15px;
    background: #140b1c; /* Card Background */
    transition: all 0.4s ease;
}

.portfolio-img {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    transition: all 0.6s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

/* Hover Overlay Styling */
.portfolio-overlay {
    position: absolute;
    bottom: -100%; /* Hidden by default */
    left: 20px;
    right: 20px;
    background: linear-gradient(to right, #8a2be2, #4b0082);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease-in-out;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 20px; /* Slide up on hover */
    opacity: 1;
}

.portfolio-content p {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 500;
}

.portfolio-content h3 {
    color: #fff;
    font-size: 22px;
    margin: 0;
    font-weight: 700;
}

/* Right Arrow Icon in Overlay */
.portfolio-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a2be2;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.portfolio-icon:hover {
    background: #000;
    color: #fff;
}

/* Staggered Grid logic for desktop */
@media (min-width: 992px) {
    .mt-lg-5 {
        margin-top: 5rem !important; /* Forces the right column lower */
    }
}