/* ========== GLOBAL STYLES ========== */
:root {
    --primary-color: #ff0030;
    --secondary-color: #ff3860;
    --accent-color: #ff005a;
    --dark-color: #0a0a0f;
    --darker-color: #050507;
    --light-dark: #121218;
    --text-color: #f2f2f2;
    --gray-color: #9e9e9e;
    --box-shadow: 0 5px 25px rgba(255, 0, 47, 0.15);
    --gradient: linear-gradient(135deg, #ff0030, #ff005a);
    --gradient-alt: linear-gradient(45deg, #ff3860, #ff0044);
    --neon-glow: 0 0 10px rgba(255, 0, 48, 0.6), 0 0 20px rgba(255, 0, 48, 0.4), 0 0 30px rgba(255, 0, 48, 0.2);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.dark-theme {
    background-color: var(--dark-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
    font-weight: 300;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.align-items-center {
    align-items: center !important;
}

.btn {
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 48, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 0, 48, 0.4);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    background-color: transparent;
}

.btn-outline:hover {
    color: #fff;
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 0, 48, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:before, .section-title h2:after {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.section-title h2:before {
    left: -45px;
}

.section-title h2:after {
    right: -45px;
}

.title-bar {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 5px;
    margin: 0 auto 10px;
    position: relative;
}

.title-bar:before, .title-bar:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.title-bar:before {
    left: -5px;
}

.title-bar:after {
    right: -5px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-subtitle {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader span {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: -30px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.circle, .shadow {
    position: absolute;
    border-radius: 50%;
}

.circle {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
    animation: circleAnimation 1.5s infinite;
}

.shadow {
    width: 30px;
    height: 5px;
    background: rgba(255, 0, 48, 0.2);
    filter: blur(5px);
    top: 45px;
    animation: shadowAnimation 1.5s infinite;
}

.circle:nth-child(1), .shadow:nth-child(4) {
    left: 0;
    animation-delay: 0s;
}

.circle:nth-child(2), .shadow:nth-child(5) {
    left: 45px;
    animation-delay: 0.2s;
}

.circle:nth-child(3), .shadow:nth-child(6) {
    left: 90px;
    animation-delay: 0.4s;
}

@keyframes circleAnimation {
    0%, 100% { top: 0; }
    50% { top: 30px; }
}

@keyframes shadowAnimation {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: rgba(10, 10, 15, 0.8); /* Changed to be visible on load */
    padding: 20px 0;
    transition: all 0.4s ease;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 15, 0.95);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 48, 0.1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    color: var(--text-color);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); /* Added for better visibility */
}

.navbar-brand span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 0, 48, 0.6); /* Added for better visibility */
}

.navbar-toggler {
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    outline: none;
    z-index: 1002; /* Ensure it stays above the menu */
}

/* Improved hamburger icon for better visibility */
.hamburger-icon {
    width: 30px;
    height: 24px;
    position: relative;
    display: inline-block;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color); /* Changed to primary color for better visibility */
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    box-shadow: 0 0 5px rgba(255, 0, 48, 0.5); /* Added glow effect */
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 10px;
}

.hamburger-icon span:nth-child(3) {
    top: 20px;
}

/* ========== SIDE MENU - UPDATED ========== */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: rgba(5, 5, 7, 0.98); /* Made darker for better visibility */
    z-index: 1001;
    padding: 80px 40px;
    transition: 0.5s;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 0, 48, 0.2);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 0, 48, 0.1);
    /* Important: Ensure the side menu is always positioned relative to viewport */
    position: fixed !important;
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    position: sticky; /* Changed from absolute to sticky */
    top: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(5, 5, 7, 0.95); /* Added background for sticky header */
    z-index: 2; /* Ensure it stays above menu content */
}

.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.side-menu .navbar-nav {
    margin-top: 30px;
    list-style: none;
    padding: 0;
}

.side-menu .nav-item {
    margin: 15px 0;
    position: relative;
}

.side-menu .nav-item:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.side-menu .nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 18px;
    padding: 10px 0;
    display: block;
    position: relative;
    transition: var(--transition);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.side-menu .nav-link:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.side-menu .nav-link:hover, .side-menu .nav-link.active {
    color: var(--primary-color);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(255, 0, 48, 0.5);
}

.side-menu .nav-link:hover:before, .side-menu .nav-link.active:before {
    width: 25px;
}

.side-menu-footer {
    position: relative; /* Changed from absolute to relative */
    margin-top: 40px; /* Added margin instead of absolute positioning */
    padding: 0 0 20px 0; /* Added bottom padding */
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-color);
    margin: 0 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
    transition: 0.5s;
    backdrop-filter: blur(5px);
}

.menu-overlay.active {
    display: block;
}

/* ========== HERO SECTION ========== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--darker-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-top: 80px; /* For desktop view */
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 1; /* Changed from 0 to make visible */
    transform: translateY(0); /* Changed from 50px to make visible */
    text-shadow: 0 0 10px rgba(255, 0, 48, 0.3); /* Added for better visibility */
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 1; /* Changed from 0 to make visible */
    transform: translateY(0); /* Changed from 50px to make visible */
}

.hero-btns {
    opacity: 1; /* Changed from 0 to make visible */
    transform: translateY(0); /* Changed from 50px to make visible */
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.hero-3d-scene {
    position: relative;
    height: 400px;
    perspective: 1000px;
    opacity: 1; /* Changed from 0 to make visible */
}

.cube-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 15s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 48, 0.1);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 0, 48, 0.2);
    opacity: 0.7;
    backface-visibility: visible;
}

.cube-face.front {
    transform: translateZ(100px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotateY(0) rotateX(0); }
    100% { transform: translate(-50%, -50%) rotateY(360deg) rotateX(360deg); }
}

@keyframes cubeRotate {
    0%, 100% { transform: rotateY(0) rotateX(0); }
    25% { transform: rotateY(90deg) rotateX(90deg); }
    50% { transform: rotateY(180deg) rotateX(180deg); }
    75% { transform: rotateY(270deg) rotateX(270deg); }
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.icon-item {
    position: absolute;
    font-size: 30px;
    color: var(--primary-color); /* Changed to primary color for better visibility */
    opacity: 0.7; /* Increased from 0.5 for better visibility */
    transition: var(--transition);
    text-shadow: var(--neon-glow); /* Added glow effect */
}

.icon-item:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.2);
}

.icon-item:nth-child(1) { top: 20%; left: 20%; }
.icon-item:nth-child(2) { top: 30%; left: 70%; }
.icon-item:nth-child(3) { top: 60%; left: 30%; }
.icon-item:nth-child(4) { top: 70%; left: 80%; }
.icon-item:nth-child(5) { top: 80%; left: 40%; }
.icon-item:nth-child(6) { top: 40%; left: 60%; }
.icon-item:nth-child(7) { top: 50%; left: 10%; }

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--dark-color), transparent);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glitch-text {
    position: relative;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: none; }
    10% { text-shadow: 2px 0 0 #ff0000, -2px 0 0 #0000ff; }
    11% { text-shadow: none; }
    20% { text-shadow: -2px 0 0 #ff0000, 2px 0 0 #0000ff; }
    21% { text-shadow: none; }
    40% { text-shadow: -2px 0 0 #ff0000, 2px 0 0 #0000ff; }
    41% { text-shadow: none; }
    45% { text-shadow: 2px 0 0 #ff0000, -2px 0 0 #0000ff; }
    46% { text-shadow: none; }
}

.typewriter {
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 4s steps(40) infinite, blink-caret .75s step-end infinite;
}

@keyframes typing {
    0%, 100% { width: 0; }
    50%, 90% { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    /* Updated: Add margin-top of 100px to hero section for tablet view */
    .hero-section {
        margin-top: 0; /* Reset margin-top */
        padding-top: 100px; /* Use padding instead for spacing */
    }
    
    /* Updated: Make sidebar menu fixed in tablet view */
    .side-menu {
        position: fixed !important; /* Reinforced with !important */
        width: 280px; /* Slightly adjusted for better fit on tablet */
    }
    
    .cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face.front,
    .cube-face.back,
    .cube-face.right,
    .cube-face.left,
    .cube-face.top,
    .cube-face.bottom {
        transform-origin: center;
        transform: translateZ(75px);
    }
    
    .cube-face.back {
        transform: rotateY(180deg) translateZ(75px);
    }
    
    .cube-face.right {
        transform: rotateY(90deg) translateZ(75px);
    }
    
    .cube-face.left {
        transform: rotateY(-90deg) translateZ(75px);
    }
    
    .cube-face.top {
        transform: rotateX(90deg) translateZ(75px);
    }
    
    .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }
}

@media (max-width: 768px) {
    /* Adjust content margins for mobile view */
    section {
        padding: 70px 0 50px;
    }
    
    /* Updated: Use padding-top instead of margin-top for hero section in mobile view */
    .hero-section {
        margin-top: 0; /* Reset any margin */
        padding-top: 80px; /* Use consistent padding */
        min-height: 600px;
    }
    
    /* Ensure navbar doesn't overlap content */
    .navbar {
        padding: 15px 0;
        height: 70px; /* Fixed height for navbar on mobile */
    }
    
    .navbar-brand {
        font-size: 24px;
    }
    
    /* ===== CRITICAL UPDATES FOR SIDE MENU IN MOBILE VIEW ===== */
    .side-menu {
        position: fixed !important; /* Double ensure fixed position */
        width: 250px;
        padding: 70px 30px 100px; /* Increased padding to ensure content visibility */
        top: 0 !important; /* Force top alignment */
        bottom: 0 !important; /* Ensure it extends to bottom */
        height: 100vh !important; /* Full viewport height */
        overflow-y: auto !important; /* Always enable scrolling */
        z-index: 9999 !important; /* Higher z-index to ensure it's on top */
    }
    
    /* Add padding to the side menu content to prevent overlap with fixed nav elements */
    .side-menu .navbar-nav {
        margin-top: 20px;
        padding-bottom: 80px; /* Ensure space at bottom for scrolling */
    }
    
    /* Make side menu header sticky at top */
    .side-menu-header {
        position: sticky;
        top: 0;
        padding: 15px;
        background-color: rgba(5, 5, 7, 0.98);
        z-index: 2;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 0, 48, 0.2);
    }
    
    /* Improve navigation visibility in the side menu for mobile */
    .side-menu .nav-link {
        font-size: 18px; /* Adjusted size */
        padding: 12px 0;
    }
    
    .side-menu .nav-item {
        margin: 10px 0;
    }
    
    /* Adjust footer positioning */
    .side-menu-footer {
        margin-top: 30px;
        display: block; /* Make sure it's visible on mobile */
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .hero-3d-scene {
        height: 300px;
        margin-top: 30px;
    }
    
    .cube {
        width: 120px;
        height: 120px;
    }
    
    .cube-face.front,
    .cube-face.back,
    .cube-face.right,
    .cube-face.left,
    .cube-face.top,
    .cube-face.bottom {
        transform-origin: center;
        transform: translateZ(60px);
    }
    
    .cube-face.back {
        transform: rotateY(180deg) translateZ(60px);
    }
    
    .cube-face.right {
        transform: rotateY(90deg) translateZ(60px);
    }
    
    .cube-face.left {
        transform: rotateY(-90deg) translateZ(60px);
    }
    
    .cube-face.top {
        transform: rotateX(90deg) translateZ(60px);
    }
    
    .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(60px);
    }
    
    .icon-item {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    /* Further adjustment for smaller screens */
    section {
        padding: 70px 0 40px;
    }
    
    /* Updated: Consistent padding approach for smaller screens */
    .hero-section {
        margin-top: 0;
        padding-top: 80px;
        min-height: 500px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .navbar-brand {
        font-size: 22px;
    }
    
    /* Further improvements for side menu on smallest screens */
    .side-menu {
        width: 85%; /* Make it wider on very small screens */
        max-width: 280px;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 11px;
    }
    
    .hero-3d-scene {
        height: 200px;
    }
    
    .cube {
        width: 100px;
        height: 100px;
    }
    
    .cube-face.front,
    .cube-face.back,
    .cube-face.right,
    .cube-face.left,
    .cube-face.top,
    .cube-face.bottom {
        transform: translateZ(50px);
    }
    
    .cube-face.back {
        transform: rotateY(180deg) translateZ(50px);
    }
    
    .cube-face.right {
        transform: rotateY(90deg) translateZ(50px);
    }
    
    .cube-face.left {
        transform: rotateY(-90deg) translateZ(50px);
    }
    
    .cube-face.top {
        transform: rotateX(90deg) translateZ(50px);
    }
    
    .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(50px);
    }
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background-color: var(--light-dark);
    position: relative;
}

.about-image {
    position: relative;
    margin-bottom: 30px;
}

.img-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.img-box {
    width: 100%;
    height: 100%;
    background-image: url('https://kanotechconsultancy.co.ke/img/colloceo.png');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.img-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 48, 0.2);
    z-index: 1;
}

.img-container:hover .img-box {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255, 0, 48, 0.3);
    z-index: 2;
}

.experience-badge .number {
    font-size: 36px;
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.about-content {
    padding-left: 20px;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.skills-container {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 20px;
    transform: translateX(50px);
    opacity: 0;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.skill-percent {
    float: right;
    margin-top: -22px;
    font-weight: 500;
    color: var(--primary-color);
}

.about-btns {
    margin-top: 30px;
}

.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(255, 0, 48, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 0, 48, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    position: relative;
    background-color: var(--dark-color);
}

.service-card {
    background-color: var(--light-dark);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 0, 48, 0.1);
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 0, 48, 0.2);
}

.service-card:hover:before {
    opacity: 0.05;
}

.service-card:hover .icon-box {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--neon-glow);
}

.icon-box {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    font-size: 30px;
    margin: 0 auto 25px;
    color: var(--primary-color);
    background-color: rgba(255, 0, 48, 0.1);
    transition: var(--transition);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ========== PACKAGES SECTION ========== */
.packages-section {
    background-color: var(--light-dark);
    position: relative;
}

.package-card {
    background-color: var(--dark-color);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 0, 48, 0.1);
    height: 100%;
    opacity: 0;
    transform: translateY(50px);
}

.package-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 0, 48, 0.2);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient);
    color: #fff;
    font-size: 14px;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 1;
}

.package-header {
    padding: 30px;
    text-align: center;
    background-color: rgba(255, 0, 48, 0.05);
    border-bottom: 1px solid rgba(255, 0, 48, 0.1);
}

.package-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price {
    margin-bottom: 10px;
}

.currency {
    font-size: 20px;
    vertical-align: top;
    position: relative;
    top: 3px;
}

.amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-plan {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 15px;
}

.package-body {
    padding: 30px;
}

.package-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.package-body ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.package-body ul li:last-child {
    border-bottom: none;
}

.package-body ul li i {
    margin-right: 10px;
    font-size: 14px;
}

.package-body ul li i.fa-check {
    color: var(--primary-color);
}

.package-body ul li i.fa-times {
    color: #f55;
}

.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 48, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 48, 0.05) 0%, transparent 40%);
    z-index: 0;
    animation: glowPulse 10s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========== PORTFOLIO SECTION (CONTINUED) ========== */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    border: var(--card-border);
    transition: var(--transition);
    height: 100%;
    transform-style: preserve-3d;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.portfolio-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.portfolio-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light-text);
}

.portfolio-info p {
    font-size: 14px;
    color: var(--muted-color);
}

.portfolio-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    position: absolute;
    top: -20px;
    right: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-link {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-container {
    position: relative;
}

.portfolio-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 90%, rgba(255, 0, 85, 0.1) 0%, transparent 40%);
    pointer-events: none;
}



/* ========== CONTACT SECTION ========== */
.contact-section {
    background-color: var(--dark-color);
    position: relative;
}

.contact-info {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    border: var(--card-border);
    position: relative;
    overflow: hidden;
    height: 100%;
    transform-style: preserve-3d;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--light-text);
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: var(--shadow);
}

.info-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light-text);
}

.info-item p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--muted-color);
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    border: var(--card-border);
    position: relative;
    overflow: hidden;
    height: 100%;
    transform-style: preserve-3d;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    display: block;
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: none;
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 12px 30px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: all 0.3s;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    color: #fff;
    background: var(--gradient);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline {
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    color: #fff;
    background: var(--gradient);
    border-color: var(--primary-color);
}

.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--darker-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    color: var(--light-text);
}

.footer-info h3 span {
    color: var(--primary-color);
}

.footer-info p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--light-text);
}

.footer-links h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-newsletter {
    margin-bottom: 30px;
}

.footer-newsletter h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--light-text);
}

.footer-newsletter h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.footer-newsletter p {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-newsletter form {
    position: relative;
}

.footer-newsletter input {
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: var(--transition);
}

.footer-newsletter input:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: none;
}

.footer-newsletter button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    font-size: 16px;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    transform: scale(1.1);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin-top: 50px;
}

.copyright {
    font-size: 14px;
    text-align: center;
}

.credits {
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
}

.credits i {
    color: var(--primary-color);
}

.credits a {
    color: var(--light-text);
    transition: var(--transition);
    text-decoration: none;
}

.credits a:hover {
    color: var(--primary-color);
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

