:root {
    --bg-dark: #121212; /* Very dark grey for background */
    --bg-card: #1e1e1e; /* Slightly lighter dark grey for cards */
    --primary: #2f4f82; /* Darker blue for primary accent */
    --secondary: #8e8e8e; /* Medium grey for secondary accent */
    --text-gray: #b0b0b0;
    --white: #ffffff;
}

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px; /* Base font size */
    background-image: url('https://www.transparenttextures.com/patterns/dark-fish-skin.png');
    background-repeat: repeat;
    background-attachment: fixed;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* --- Loading Spinner --- */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}



.spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: var(--primary) var(--primary) transparent transparent;
    box-sizing: border-box;
    animation: spin 1.2s linear infinite;
}

.spinner::after,
.spinner::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: transparent transparent var(--secondary) var(--secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: spin-back 0.8s linear infinite;
}

.spinner::before {
    width: 40px;
    height: 40px;
    border-color: var(--white) var(--white) transparent transparent;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-back {
  100% {
    transform: rotate(-360deg);
  }
}

/* --- Navbar --- */
.pixelpulsex-navbar {
    padding: 15px 0;
    background-color: rgba(44, 44, 68, 0.6); /* Semi-transparent background for glassmorphism */
    backdrop-filter: blur(10px); /* Glassmorphism blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pixelpulsex-navbar .navbar-brand {
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.pixelpulsex-navbar .navbar-brand:hover {
    color: var(--primary) !important;
}

.pixelpulsex-navbar .navbar-brand i {
    font-size: 1.8rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.pixelpulsex-navbar .navbar-brand:hover i {
    transform: rotate(10deg) scale(1.1);
}

.pixelpulsex-navbar .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding: 10px 0; /* Adjust padding for underline effect */
}

.pixelpulsex-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.pixelpulsex-navbar .nav-link:hover::after,
.pixelpulsex-navbar .nav-link.active::after {
    width: 100%;
}

.pixelpulsex-navbar .nav-link:hover {
    color: var(--secondary) !important;
    transform: translateY(-2px);
}

.btn-primary-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    color: var(--white);
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
    opacity: 0.9;
    color: var(--white);
}

.mobile-cv-btn,
.mobile-cv-menu {
    white-space: nowrap;
}

.mobile-cv-btn {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.mobile-cv-menu {
    text-align: center;
    padding: 12px 16px;
    margin-bottom: 4px;
}

.navbar-toggler {
    border: 1px solid var(--secondary);
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(78, 205, 196, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234ecdc4' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0; /* More vertical padding */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--primary) 0%, var(--bg-dark) 70%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); /* More dramatic diagonal cut */
    opacity: 0.2;
    z-index: -2; /* Ensure it's behind other shapes */
}

.hero-shape-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, var(--secondary), transparent);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; /* Organic, blob-like shape */
    opacity: 0.15;
    z-index: -1;
    animation: floatShape 8s ease-in-out infinite alternate;
}

.hero-shape-2 {
    position: absolute;
    bottom: 5%;
    left: 8%;
    width: 180px;
    height: 180px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%); /* Triangle */
    opacity: 0.1;
    z-index: -1;
    transform: rotate(25deg);
    animation: rotateShape 12s linear infinite;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hello-text {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--secondary);
    opacity: 0.9;
}

.name-text {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(left, var(--white), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.role-text {
    font-size: 1.4rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-summary {
    font-size: 1.05rem;
    color: var(--text-gray);
    max-width: 560px;
    margin-bottom: 35px;
}

.contact-info-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.address-text {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 400px;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 22px;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--bg-card); /* Use bg-card for better contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.social-icons .social-btn:nth-child(1) {
    animation-delay: 0.2s;
}

.social-icons .social-btn:nth-child(2) {
    animation-delay: 0.4s;
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
    animation-play-state: paused;
}

/* Hero Image & Effect */
.hero-img-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    filter: grayscale(15%) contrast(108%);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
    transform: rotate(-5deg);
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.55s ease, box-shadow 0.55s ease;
    border: 3px solid rgba(142, 142, 142, 0.75);
    animation: heroFloat 3.2s ease-in-out infinite;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.08);
    filter: grayscale(0%) contrast(100%);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.52);
}

/* Keyframe Animations */
@keyframes floatShape {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-15px) translateX(10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes rotateShape {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-12px) rotate(-5deg); }
}

/* Responsive adjustments for Hero Section */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding: 80px 0;
    }
    .name-text {
        font-size: 3.5rem;
    }
    .role-text {
        font-size: 1.1rem;
    }
    .hero-summary {
        max-width: 100%;
    }
    .social-icons {
        justify-content: center;
        margin-bottom: 40px;
    }
    .contact-info-link, .address-text {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-shape-1, .hero-shape-2 {
        display: none; /* Hide complex shapes on smaller screens */
    }
    .hero-background-shape {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); /* Simpler clip path */
        opacity: 0.1;
    }
    .hero-img {
        max-width: 340px;
        transform: rotate(0deg); /* No rotation on mobile */
        border-width: 2px;
        animation: heroFloatMobile 3.2s ease-in-out infinite;
    }
    .pixelpulsex-navbar .navbar-collapse {
        padding: 8px 0 4px;
    }
    .pixelpulsex-navbar .navbar-nav {
        width: 100%;
    }
    .pixelpulsex-navbar .nav-item {
        width: 100%;
    }
    .pixelpulsex-navbar .nav-link {
        display: block;
        width: 100%;
        margin: 0;
        padding: 12px 0;
    }
}

@media (max-width: 575px) {
    .mobile-cv-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@keyframes heroFloatMobile {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
}
/* --- About Section --- */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-content-wrapper {
    position: relative;
    z-index: 1;
    background-color: var(--bg-card); /* Use bg-card for consistency */
    backdrop-filter: blur(8px);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(74, 144, 226, 0.2); /* Subtle primary border */
    clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); /* Slightly less dramatic skew */
    transition: all 0.5s ease-in-out;
}

.about-content-wrapper:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    margin-top: 50px;
    position: relative;
}

.sub-title {
    font-size: 1.05rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    position: relative;
    color: var(--secondary); /* Grey secondary color */
    font-weight: 600;
}

/* Little purple dot above title - changed to a subtle pattern */
.sub-title::before {
    content: '';
    display: block;
    width: 35px; /* Wider line */
    height: 4px; /* Thicker line */
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 0 auto 15px auto;
    border-radius: 5px;
    box-shadow: 0 0 18px rgba(74, 144, 226, 0.7); /* Primary color glow */
}

.main-title {
    font-size: 3.5rem; /* Slightly larger title */
    font-weight: 800;
    background: -webkit-linear-gradient(left, var(--white), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-top: 20px;
}

/* Info Rows */
.about-info-card {
    background-color: #252525; /* Darker tone for info card */
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    border-color: var(--secondary);
}

.info-row {
    background-color: transparent;
    padding: 18px 0;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.info-row:hover {
    background-color: rgba(142, 142, 142, 0.08); /* Subtle highlight on hover with secondary color */
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    width: 140px; /* Slightly wider label */
    font-weight: 700;
    color: var(--primary); /* Primary for labels */
    font-size: 1.1rem;
}

.info-value {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 1.05rem;
}

.info-value.available {
    color: var(--primary); /* Using primary for available status, stands out more */
    font-weight: 600;
    text-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.about-image-wrapper {
    position: relative;
    padding: 30px;
    background-color: #252525; /* Darker tone for image wrapper */
    border-radius: 20px;
    overflow: hidden;
    transform: rotate(5deg); /* Slightly more rotation */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(142, 142, 142, 0.15) 0%, transparent 70%); /* Secondary color radial glow */
    animation: pulseGlow 12s ease-in-out infinite alternate;
    z-index: 1;
}

.about-img {
    width: 100%;
    max-width: 450px; /* Slightly larger image size */
    border-radius: 15px;
    filter: grayscale(70%) contrast(120%); /* More pronounced initial effect */
    transition: filter 0.6s, transform 0.6s;
    height: 100%;
    object-fit: cover;
    min-height: 400px; /* Taller image */
    transform: rotate(4deg) scale(1.03) translateX(60px); /* Adjust position and scale */
    position: relative;
    z-index: 2;
    border: 3px solid var(--primary); /* Primary color border */
}

.about-img:hover {
    filter: grayscale(0%) contrast(100%);
    transform: rotate(0deg) scale(1) translateX(0px);
}

/* Keyframe Animation for About Image Wrapper */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.15); opacity: 0.25; }
    100% { transform: scale(1); opacity: 0.15; }
}

/* Responsive adjustments for About Section */
@media (max-width: 991px) {
    .about-content-wrapper {
        clip-path: none; /* Remove complex clip-path on smaller screens */
        padding: 30px;
    }
    .about-image-wrapper {
        transform: rotate(0deg); /* No rotation on mobile */
        padding: 20px;
    }
    .about-img {
        transform: rotate(0deg) scale(1); /* No rotation on mobile */
        min-height: 300px;
    }
    .main-title {
        font-size: 2.8rem;
    }
    .section-header {
        margin-bottom: 40px;
    }
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.service-card {
    background-color: rgba(44, 44, 68, 0.5); /* Glassmorphism background */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); /* Skewed card shape */
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    background-color: rgba(255, 107, 107, 0.1); /* Subtle primary color tint on hover */
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.service-card:hover .icon-wrapper {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.6);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    background: -webkit-linear-gradient(left, var(--white), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Responsive adjustments for Services Section */
@media (max-width: 991px) {
    .service-card {
        clip-path: none; /* Remove complex clip-path on smaller screens */
        border-radius: 10px;
    }
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 20px;
    }
    .service-title {
        font-size: 1.5rem;
    }
}

/* --- Skills Section - List Style --- */
.skills-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.skills-list-wrapper {
    background-color: var(--bg-card);
    backdrop-filter: blur(8px); /* Increased blur */
    border: 1px solid rgba(74, 144, 226, 0.2); /* Border matching primary color, subtle */
    border-radius: 20px; /* More rounded corners */
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    transform: perspective(1000px) rotateY(3deg); /* Slight 3D tilt */
    transition: all 0.5s ease-in-out;
}

.skills-list-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.skill-item {
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: #2a2a2a; /* Darker background for individual skill items */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.02);
    background-color: #3a3a3a; /* Lighter on hover */
    border-color: var(--primary); /* Highlight border on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-label {
    font-size: 1.25rem; /* Slightly larger font */
    font-weight: 700;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.skill-percent {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    background: -webkit-linear-gradient(left, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress {
    height: 15px; /* Thicker progress bar */
    border-radius: 15px; /* More rounded */
    background-color: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 15px;
    animation: fillProgressBar 1.8s ease-out forwards; /* Slower animation */
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.6); /* Glow effect for progress */
}

@keyframes fillProgressBar {
    0% { width: 0; }
    100% { /* width is set inline */ }
}

/* Responsive adjustments for Skills Section */
@media (max-width: 991px) {
    .skills-list-wrapper {
        padding: 30px;
        transform: none; /* No 3D tilt on mobile */
    }
    .skills-list-wrapper:hover {
        transform: none;
    }
    .skill-item {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    .skill-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
    .skill-label {
        font-size: 1.05rem;
    }
    .skill-percent {
        font-size: 0.95rem;
    }
    .project-card .card-body {
        padding: 25px 20px;
    }
    .project-card .card-title {
        font-size: 1.2rem;
    }
}

/* --- Projects Section --- */
#projects {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.project-card {
    background: linear-gradient(160deg, rgba(18, 18, 18, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 14px 34px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 22px 55px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(79, 156, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(79, 156, 255, 0.28);
    background: linear-gradient(160deg, rgba(22, 22, 22, 0.98) 0%, rgba(33, 33, 33, 0.98) 100%);
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    filter: brightness(0.82) contrast(1.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.project-card:hover .project-img {
    filter: brightness(0.92) contrast(1.12);
    transform: scale(1.05);
}

.project-card .card-body {
    padding: 26px 22px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.34) 100%);
}

.project-card .card-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.project-card:hover .card-title {
    color: rgba(79, 156, 255, 0.9);
}

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-badges .badge {
    background: rgba(79, 156, 255, 0.15);
    color: rgba(79, 156, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(79, 156, 255, 0.3);
    transition: all 0.3s ease;
}

.project-badges .badge:hover {
    background: rgba(79, 156, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 156, 255, 0.2);
}

.project-card .btn-primary-gradient {
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(47, 79, 130, 0.8) 100%);
    border: 1px solid rgba(79, 156, 255, 0.3);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(79, 156, 255, 0.2);
}

.project-card .btn-primary-gradient:hover {
    background: linear-gradient(135deg, rgba(79, 156, 255, 1) 0%, rgba(47, 79, 130, 1) 100%);
    box-shadow: 0 8px 25px rgba(79, 156, 255, 0.4);
    transform: translateY(-2px);
    border-color: rgba(79, 156, 255, 0.5);
}

/* Filter buttons styling */
.filter-btn {
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(79, 156, 255, 0.22);
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(47, 79, 130, 0.8) 100%);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 156, 255, 0.3);
}

/* Responsive adjustments for Projects Section */
@media (max-width: 991px) {
    .project-card {
        border-radius: 12px;
    }
    .project-card:hover {
        transform: translateY(-5px);
    }
    .project-img {
        height: 220px;
    }
    .project-card .card-title {
        font-size: 1.3rem;
    }
    .project-card .btn-primary-gradient {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .project-img {
        height: 200px;
    }
    .project-card .card-body {
        padding: 25px 20px;
    }
    .project-card .card-title {
        font-size: 1.2rem;
    }
}

/* --- Resume Section --- */
#resume {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.resume-category-title {
    font-size: 2.5rem; /* Larger title */
    font-weight: 800;
    color: var(--white);
    margin-bottom: 60px; /* More space */
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    background: -webkit-linear-gradient(left, var(--white), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.resume-category-title::before {
    content: '';
    display: block;
    width: 50px; /* Wider line */
    height: 5px; /* Thicker line */
    background: linear-gradient(to right, var(--secondary), var(--primary));
    margin: 0 auto 20px auto;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(142, 142, 142, 0.6); /* Secondary color glow */
}

.resume-item {
    background-color: var(--bg-card); /* Use bg-card */
    backdrop-filter: blur(8px);
    padding: 40px;
    margin-bottom: 35px; /* More space between items */
    position: relative;
    border-radius: 15px;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; /* Hide anything outside for clean edges */
}

.resume-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, transparent 50%, rgba(142, 142, 142, 0.1) 100%); /* Diagonal gradient overlay */
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.resume-item:hover::before {
    opacity: 1;
}

.resume-item::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 15px 0 0 15px;
    transition: all 0.5s ease;
    z-index: 1;
}

.resume-item:hover::after {
    width: 10px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.resume-date {
    display: inline-block;
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: rgba(142, 142, 142, 0.15);
    padding: 7px 15px;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.resume-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.resume-company {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.resume-description {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for Resume Section */
@media (max-width: 991px) {
    .resume-category-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .resume-item {
        border-radius: 10px;
        padding-left: 20px;
    }
    .resume-item::after {
        width: 5px;
        left: 0;
    }
    .resume-item:hover::after {
        width: 7px;
    }
    .resume-date {
        font-size: 0.9rem;
    }
    .resume-title {
        font-size: 1.5rem;
    }
}

/* --- Certificates Section --- */
.certificates-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.certificate-carousel {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

.certificate-slide {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(35, 35, 35, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    animation: certificateFloat 6s ease-in-out infinite;
}

.certificate-image {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.carousel-item.active .certificate-image {
    transform: scale(1.01);
    filter: brightness(1.03) contrast(1.03);
}

.certificate-slide:hover .certificate-image {
    transform: scale(1.03);
}

.certificates-section .carousel-indicators {
    bottom: -42px;
}

.certificates-section .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background-color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.certificates-section .carousel-indicators .active {
    background-color: var(--primary);
    transform: scale(1.15);
}

.certificates-section .carousel-control-prev,
.certificates-section .carousel-control-next {
    width: 11%;
}

.certificates-section .carousel-control-prev-icon,
.certificates-section .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(18, 18, 18, 0.8);
    background-size: 1.3rem 1.3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.certificates-section .carousel-control-prev:hover .carousel-control-prev-icon,
.certificates-section .carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.08);
    background-color: rgba(47, 79, 130, 0.9);
}

.certificate-pdf-link {
    margin-top: 28px;
}

@keyframes certificateFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
    .certificates-section {
        padding: 80px 0;
    }

    .certificate-slide {
        padding: 12px;
        border-radius: 18px;
    }

    .certificate-image {
        max-height: 400px;
        border-radius: 12px;
    }

    .certificates-section .carousel-control-prev-icon,
    .certificates-section .carousel-control-next-icon {
        width: 2.55rem;
        height: 2.55rem;
    }
}

@media (max-width: 576px) {
    .certificates-section .carousel-control-prev,
    .certificates-section .carousel-control-next {
        width: 18%;
    }

    .certificate-image {
        max-height: 320px;
    }
}

/* --- Contact Section --- */
#contact {
    padding: 80px 0;
}

/* --- Blog Section (Cards) --- */
#blog {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.blog-card {
    background-color: var(--bg-card); /* Consistent card background */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    height: 100%;
    position: relative;
    z-index: 1;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); /* Consistent subtle skew */
}

.blog-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary); /* Highlight with secondary color on hover */
}

.blog-card .card-img-top {
    width: 100%;
    height: 280px; /* Consistent increased image height */
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    filter: grayscale(60%) brightness(0.8);
    transition: filter 0.6s, transform 0.6s ease;
}

.blog-card:hover .card-img-top {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.08);
}

.blog-card .card-body {
    padding: 35px;
}

.blog-card .card-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.7rem;
    background: -webkit-linear-gradient(left, var(--white), var(--primary)); /* Gradient with primary */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.blog-card .card-text {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.blog-card .btn-secondary-outline-gradient {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 35px;
    padding: 13px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
}

.blog-card .btn-secondary-outline-gradient:hover {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    border-color: var(--secondary);
    color: var(--white);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(142, 142, 142, 0.6); /* Secondary glow */
}

/* Responsive adjustments for Blog Section */
@media (max-width: 991px) {
    .blog-card {
        clip-path: none;
        border-radius: 15px;
        transform: translateY(0) scale(1);
    }
    .blog-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    .blog-card .card-img-top {
        height: 220px;
    }
    .blog-card .card-title {
        font-size: 1.5rem;
    }
    .blog-card .btn-secondary-outline-gradient {
        font-size: 0.9rem;
        padding: 11px 22px;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    padding: 40px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#contact .form-control {
    background-color: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#contact .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(123, 44, 191, 0.35);
    background-color: #1a1a2e;
    color: var(--white);
}

#contact .form-control::placeholder {
    color: var(--text-gray);
    opacity: 0.8;
}

#contact .contact-info {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#contact .contact-info h3 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

#contact .contact-info p {
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

#contact .contact-info p i {
    color: var(--secondary);
    margin-right: 12px;
    font-size: 1.2rem;
}

#contact .social-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

#contact .social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

#contact .social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-custom:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Contact Section - Re-added and Styled --- */
#contact {
    padding: 80px 0;
}

#contact .section-header {
    margin-bottom: 60px; /* Adjust spacing */
}

#contact .contact-info {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px); /* Enhanced blur */
    padding: 60px; /* Increased padding */
    border-radius: 25px; /* Larger border-radius for a softer look */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(74, 144, 226, 0.25); /* Subtle primary border with more opacity */
    max-width: 750px; /* Wider container for centering */
    margin: 50px auto; /* Center the block and add more top/bottom margin */
    text-align: center; /* Center text content within the block */
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

#contact .contact-info:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
    border-color: var(--primary);
}

#contact .contact-info h3 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 35px; /* More space below heading */
    font-size: 2.2rem; /* Larger heading */
    text-shadow: 3px 3px 10px rgba(0,0,0,0.35);
}

#contact .contact-info p {
    color: var(--text-gray);
    margin-bottom: 25px; /* More space between paragraphs */
    display: flex;
    align-items: center;
    justify-content: center; /* Center text and icons */
    font-size: 1.15rem; /* Slightly larger text */
    line-height: 1.8;
}

#contact .contact-info p i {
    color: var(--primary); /* Primary color for icons */
    margin-right: 18px;
    font-size: 1.5rem; /* Larger icons */
    transition: transform 0.4s ease;
}

#contact .contact-info p:hover i {
    transform: scale(1.15) rotate(-7deg); /* More pronounced hover effect on icons */
}

#contact .social-icons {
    margin-top: 45px; /* More space above social icons */
    display: flex;
    gap: 25px; /* More space between social buttons */
    justify-content: center; /* Center the social icons group */
}

#contact .social-btn {
    width: 60px; /* Slightly larger social buttons */
    height: 60px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem; /* Larger icon within button */
    transition: all 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

#contact .social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.6); /* Primary color glow */
}

/* Responsive adjustments for Contact Section */
@media (max-width: 991px) {
    #contact .contact-info {
        padding: 50px 25px; /* Adjusted padding */
        margin: 40px auto; /* Adjust margin */
    }
    #contact .contact-info h3 {
        font-size: 1.8rem;
    }
    #contact .contact-info p {
        font-size: 1.05rem;
        justify-content: center;
    }
    #contact .contact-info p i {
        font-size: 1.3rem;
    }
    #contact .social-icons {
        gap: 20px;
    }
    #contact .social-btn {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* --- Floating WhatsApp Button --- */
#whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #73abb5ff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
  transition: .3s ease;
  opacity: 0;
  pointer-events: none;
}

#whatsapp-btn.show {
  opacity: 1;
  pointer-events: auto;
}

/* --- Welcome play button --- */
.play-welcome-btn {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1100;
  background: linear-gradient(90deg, rgba(74,144,226,1), rgba(142,142,142,1));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 8px 12px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform .15s ease, opacity .2s ease;
}
.play-welcome-btn:hover {
  transform: translateY(-3px) scale(1.02);
} 