/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 06-May-2025, 10:28:59 pm
    Author     : Jyothiswaroop
*/

/* ============================
   Variables
   ============================ */
:root {
    /* Colors */
    --primary-color: #0076D6;
    --secondary-color: #00A1E0;
    --accent-color: #04844B;
    --dark-color: #032E61;
    --light-color: #F7FBFF;
    --gray-color: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --black: #333333;
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Scrollbar (customizable through admin) */
    --scrollbar-track-color: #f1f1f1;
    --scrollbar-thumb-color: var(--primary-color);
    --scrollbar-thumb-hover-color: var(--secondary-color);
    --scrollbar-width: 10px;
    --scrollbar-border-radius: 5px;
}

/* ============================
   Global Styles
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-line {
    width: 8rem;
    height: 0.4rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 1.5rem auto;
    border-radius: 2rem;
}

.section-header p {
    font-size: 1.8rem;
    color: var(--gray-color);
    max-width: 60rem;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 5rem;
    font-weight: 500;
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 0.4rem 1.5rem rgba(0, 118, 214, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.8rem 2rem rgba(0, 118, 214, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================
   Custom Scrollbar
   ============================ */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
    border-radius: var(--scrollbar-border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-color);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

/* ============================
   Header
   ============================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 2rem 0;
}

header.sticky {
    background-color: var(--white);
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.sticky .logo {
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.sticky .nav-links a {
    color: var(--black);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 0.2rem;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 3rem;
    height: 0.3rem;
    background-color: var(--white);
    margin: 0.6rem 0;
    transition: var(--transition);
    position: relative;
}

.sticky .menu-btn span {
    background-color: var(--black);
}

.menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(0.7rem, 0.7rem);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(0.7rem, -0.7rem);
}

/* ============================
   Hero Section
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12rem 0 5rem;
    background-color: var(--primary-color);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 60, 0.7);
    z-index: 1;
}

.hero[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 46, 97, 0.7);
    z-index: 1;
    opacity: 0.8;
}

.hero .container {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.hero-content {
    flex: 1 1 60%;
    max-width: 60%;
    color: white;
    margin-right: 2rem;
}

.hero-image {
    flex: 0 0 40%;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    z-index: 5;
}

.hero[style*="background-image"] .hero-image {
    display: flex;
    position: relative;
    z-index: 5;
    opacity: 1;
    visibility: visible;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 50rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-icons {
    display: flex;
    gap: 2rem;
}

.social-icons a {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
    color: var(--white);
}

/* Blob animation and profile image */
.blob-animation {
    position: relative;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    visibility: visible;
    opacity: 1;
}

.blob-animation:before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    animation: blob-animation 6s linear infinite;
    z-index: -1;
}

.profile-image {
    border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    width: 280px;
    height: 280px;
    object-fit: cover;
    z-index: 20;
    background-color: transparent;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    visibility: visible;
    opacity: 1;
}

.profile-placeholder {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    z-index: 20;
}

.profile-placeholder i {
    font-size: 100px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.profile-placeholder p {
    font-size: 18px;
    opacity: 0.7;
}

@keyframes blob-animation {
    0% {
        border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    }
    25% {
        border-radius: 38% 62% 63% 37% / 48% 48% 52% 52%;
    }
    50% {
        border-radius: 45% 55% 52% 48% / 56% 38% 62% 44%;
    }
    75% {
        border-radius: 50% 50% 40% 60% / 42% 54% 46% 58%;
    }
    100% {
        border-radius: 42% 56% 72% 28% / 42% 42% 56% 48%;
    }
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-down a {
    color: var(--white);
    font-size: 2.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ============================
   About Section
   ============================ */
.about-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    border: 3px solid var(--primary-color);
}

.about-text {
    flex: 0 0 55%;
}

.about-text h3 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 2.5rem;
    color: var(--gray-color);
}

.no-image {
    width: 100%;
    height: 300px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.no-image i {
    font-size: 80px;
    color: #ccc;
}

/* ============================
   Skills Section
   ============================ */
/* Skills Container Layout */
.skills-container {
    display: grid;
    grid-template-columns: 235px 1fr;
    gap: 2rem;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 1200px;
}

/* Left sidebar for categories */
.skills-categories {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
    border-right: 1px solid #e9ecef;
    height: 100%;
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-nav-item {
    padding: 1.2rem 2rem;
    font-size: 1.6rem;
    color: #495057;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.category-nav-item:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
}

.category-nav-item.active {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
}

.category-nav-item::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-top: 2px solid #adb5bd;
    border-right: 2px solid #adb5bd;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.3s ease;
}

.category-nav-item:hover::after,
.category-nav-item.active::after {
    border-color: var(--primary-color);
    transform: translateY(-50%) rotate(45deg) scale(1.2);
}

/* Right side for skills content */
.skills-content {
    padding: 2rem;
    height: 100%;
}

.skill-category {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.skill-category.active {
    display: block;
}

.skill-category-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f1f1;
}

.skill-category-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0;
}

.skill-category-description {
    color: #6c757d;
    margin-top: 0.5rem;
    font-size: 1.4rem;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.5s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: white;
    z-index: 5;
}

.skill-info h4 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    width: 100%;
}

/* Touch feedback for skill items */
.touch-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.skill-item.touching .touch-ripple {
    opacity: 1;
}

.skill-item:active::after {
    animation: touch-ripple 0.6s ease-out;
}

@keyframes touch-ripple {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(50);
        opacity: 0;
    }
}

.skill-item:active {
    transform: scale(0.97);
    background-color: #f0f0f0;
}

/* Custom category colors */
.category-nav-item[data-category="Salesforce Development"],
.skill-item[data-category="Salesforce Development"] {
    border-color: #1589EE;
}

.category-nav-item[data-category="Integration & APIs"],
.skill-item[data-category="Integration & APIs"] {
    border-color: #6A4C93;
}

.category-nav-item[data-category="Web Development"],
.skill-item[data-category="Web Development"] {
    border-color: #2ECC71;
}

/* Create staggered animation for skill items */
.skill-category.active .skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-category.active .skill-item:nth-child(2) { animation-delay: 0.15s; }
.skill-category.active .skill-item:nth-child(3) { animation-delay: 0.2s; }
.skill-category.active .skill-item:nth-child(4) { animation-delay: 0.25s; }
.skill-category.active .skill-item:nth-child(5) { animation-delay: 0.3s; }
.skill-category.active .skill-item:nth-child(6) { animation-delay: 0.35s; }
.skill-category.active .skill-item:nth-child(7) { animation-delay: 0.4s; }
.skill-category.active .skill-item:nth-child(8) { animation-delay: 0.45s; }
.skill-category.active .skill-item:nth-child(9) { animation-delay: 0.5s; }
.skill-category.active .skill-item:nth-child(10) { animation-delay: 0.55s; }

/* Ensure items are visible when animations are disabled */
.reduced-motion .skill-item {
    opacity: 1;
    transform: none;
    animation: none;
}

/* Add a subtle pulse effect to highlight active category */
.skill-category.active {
    animation: fadeInCategory 0.5s ease forwards;
}

@keyframes fadeInCategory {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Skills Card Deck */
/* Mobile-specific container for card deck view */
.skills-mobile-container {
    display: none;
    padding: 1rem;
    margin: 0 auto;
    max-width: 100%;
}

/* Card deck inspired layout */
.skills-deck {
    position: relative;
    height: 400px;
    perspective: 1000px;
    margin: 0 auto;
    max-width: 300px;
}

/* Stacked cards representing each category */
.skill-category-card {
    position: absolute;
    width: 100%;
    height: 350px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
    padding: 20px;
    transform-origin: 50% 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    backface-visibility: hidden;
}

/* Current card is visible and in front */
.skill-category-card.current {
    opacity: 1;
    visibility: visible;
    transform: translateZ(0) rotateX(0) scale(1);
    z-index: 5;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.16);
    animation: cardEntrance 0.5s ease forwards;
}

/* Previous card is behind with a tilt */
.skill-category-card.prev {
    opacity: 0.7;
    visibility: visible;
    transform: translate3d(-40px, 20px, -40px) rotateX(8deg) rotateZ(-2deg) scale(0.9);
    z-index: 4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

/* Next card is also behind with opposite tilt */
.skill-category-card.next {
    opacity: 0.7;
    visibility: visible;
    transform: translate3d(40px, 20px, -40px) rotateX(8deg) rotateZ(2deg) scale(0.9);
    z-index: 3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

/* Far previous/next cards are barely visible */
.skill-category-card.far-prev, 
.skill-category-card.far-next {
    opacity: 0.4;
    visibility: visible;
    transform: translate3d(0, 40px, -80px) rotateX(16deg) scale(0.8);
    z-index: 2;
    pointer-events: none;
}

/* Card header styling */
.skill-category-card .card-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.skill-category-card .card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.skill-category-card .card-title {
    font-size: 1.4rem;
    margin: 0;
    color: var(--primary-color);
}

.skill-category-card .card-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Individual skill items with flashy highlights */
.skill-category-card .card-skills {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-category-card .skill-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
    opacity: 1;
    transform: none;
    animation: none;
}

/* Flashy gradient background on tap/click */
.skill-category-card .skill-item:active {
    transform: scale(0.98);
}

.skill-category-card .skill-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px 0 0 4px;
}

/* Customized skill item backgrounds based on category */
.skill-category-card[data-category="Salesforce Development"] .skill-item::before {
    background: linear-gradient(to bottom, #1589EE, #09BDAF);
}

.skill-category-card[data-category="Integration & APIs"] .skill-item::before {
    background: linear-gradient(to bottom, #6A4C93, #9642A8);
}

.skill-category-card[data-category="Web Development"] .skill-item::before {
    background: linear-gradient(to bottom, #2ECC71, #27AE60);
}

.skill-category-card .skill-name {
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

/* Navigation controls for the skill deck */
.skills-deck-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 20px;
}

.skills-deck-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.skills-deck-button:active {
    transform: scale(0.95);
}

.skills-deck-indicator {
    display: flex;
    gap: 6px;
    margin-top: 15px;
    justify-content: center;
}

.skills-deck-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.skills-deck-dot.active {
    background: var(--primary-color);
    transform: scale(1.25);
}

/* Category label displayed prominently */
.skills-deck-category {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
    min-height: 20px;
}

/* Entry animations for cards */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Swipe hint animation */
.swipe-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0,0,0,0.5);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.swipe-hint i {
    font-size: 1rem;
}

/* ====== CRITICAL FIX: RESPONSIVE DISPLAY CONTROL ====== */
@media (max-width: 767px) {
    .skills-container {
        display: none !important; /* Force hide on mobile */
    }
    
    .skills-mobile-container {
        display: block !important; /* Force show on mobile */
    }
}

@media (min-width: 768px) {
    .skills-container {
        display: grid !important; /* Force show on desktop */
    }
    
    .skills-mobile-container {
        display: none !important; /* Force hide on desktop */
    }
}

/* ============================
   Portfolio Section
   ============================ */
.portfolio {
    background-color: #f8f9fa;
    padding: 10rem 0;
    position: relative;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
    gap: 1rem;
}

.filter-btn {
    background-color: white;
    border: none;
    padding: 1.2rem 2.8rem;
    font-size: 1.6rem;
    border-radius: 5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 118, 214, 0.15);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* Portfolio Card */
.portfolio-card {
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top-width: 5px;
    border-top-style: solid;
    border-top-color: #7f8c8d;
}

/* Category-specific card styling */
.portfolio-item.lwc .portfolio-card {
    border-top-color: #f1c40f;
}

.portfolio-item.integration .portfolio-card {
    border-top-color: #3498db;
}

.portfolio-item.custom .portfolio-card {
    border-top-color: #e74c3c;
}

.portfolio-item.mobile .portfolio-card {
    border-top-color: #9b59b6;
}

.portfolio-item.analytics .portfolio-card {
    border-top-color: #2ecc71;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.1);
}

/* Portfolio Icon */
.portfolio-icon {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5rem auto;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 4px solid white;
    position: relative;
    z-index: 1;
}

.portfolio-icon i {
    font-size: 3.6rem;
    color: white;
}

.portfolio-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Portfolio Image */
.portfolio-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    padding: 12px;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.portfolio-image img:hover {
    transform: scale(1.1);
}

/* Portfolio Content */
.portfolio-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.portfolio-content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.portfolio-content h3:after {
    display: none;
}

/* Portfolio Line */
.portfolio-line {
    width: 5rem;
    height: 0.3rem;
    margin: 1.2rem auto 2rem;
    border-radius: 0.2rem;
    transition: width 0.3s ease;
    background: linear-gradient(to right, #7f8c8d, #95a5a6);
    display: block;
}

.portfolio-card:hover .portfolio-line {
    width: 7rem;
}

.portfolio-content p {
    color: #6c757d;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Portfolio Tags */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.portfolio-tag {
    font-size: 1.3rem;
    padding: 0.6rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: 3rem;
    color: #495057;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 118, 214, 0.1);
}

.portfolio-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
}

/* Portfolio Links */
.portfolio-links {
    margin-top: auto;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 5rem;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-link i {
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.portfolio-link:hover i {
    transform: translateX(3px);
}

/* Empty portfolio states */
.empty-portfolio {
    grid-column: 1/-1;
    text-align: center;
    padding: 5rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

.empty-portfolio p {
    color: #6c757d;
    font-size: 1.8rem;
}

.empty-category-message {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #666;
    width: 100%;
    font-style: italic;
    grid-column: 1/-1;
}

/* ============================
   Experience Section
   ============================ */
.experience {
    background: white;
    position: relative;
    overflow: hidden;
}

/* Experience cards container */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    perspective: 1000px;
}

/* Individual experience card */
.experience-card-3d {
    position: relative;
    height: 100%;
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.07);
    cursor: pointer;
    will-change: transform;
}

/* Card front side */
.experience-card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 16px;
    color: white;
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    cursor: pointer;
}

/* Card back side with details */
.experience-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    color: #333;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Handle card flipping */
.experience-card-3d.flipped {
    transform: rotateY(180deg);
}

/* Visual elements on the card front */
.experience-time {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Company logo/icon area */
.experience-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.experience-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Company & Role details */
.experience-company {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 0.3rem;
}

.experience-role {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Interactive hints on card */
.experience-card-front::after {
    content: "Click to view details";
    position: absolute;
    bottom: 1rem;
    right: 2.5rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.experience-card-front:hover::after {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.experience-card-front::before {
    content: "\f065";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.experience-card-front:hover::before {
    transform: scale(1.2);
}

/* Back card content styling */
.experience-card-back-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.experience-card-back-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.experience-back-action {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f1f1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.experience-back-action:hover {
    background: #e1e1e1;
    transform: rotate(90deg);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.experience-back-action i {
    font-size: 1rem;
    color: #555;
}

/* Description on back */
.experience-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

/* Achievements styling */
.experience-achievements {
    margin-top: auto;
}

.achievement-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.achievement-title::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.achievements-list {
    list-style-type: none;
    padding-left: 1.5rem;
    margin: 0;
}

.achievements-list li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    line-height: 1.5;
}

.achievements-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-color);
    opacity: 0.7;
    border-radius: 50%;
}

/* Skills used section on back */
.experience-skills {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
}

.skills-title {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #f1f1f1;
    color: #555;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Card transition animations */
.experience-card-3d {
    animation: cardAppear 0.8s calc(var(--card-index) * 0.15s) backwards;
}

/* Card visibility classes for navigation */
.experience-card-3d.current {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.experience-card-3d.hidden-left,
.experience-card-3d.hidden-right {
    display: none;
}

.experience-card-3d.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

.experience-card-3d.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.experience-card-3d.slide-out-right {
    animation: slideOutRight 0.5s ease forwards;
}

.experience-card-3d.slide-out-left {
    animation: slideOutLeft 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* 3D hover effect for cards */
.experience-card-3d:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 15px 20px rgba(0,0,0,0.1);
}

/* Card colors based on role type */
.card-dev {
    background: linear-gradient(135deg, #1589EE, #09BDAF);
}

.card-admin {
    background: linear-gradient(135deg, #6A4C93, #9642A8);
}

.card-consultant {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
}

/* Card icons based on roles */
.card-dev .experience-icon {
    background: rgba(21, 137, 238, 0.15);
}
.card-dev .experience-icon i {
    color: #1589EE;
}

.card-admin .experience-icon {
    background: rgba(150, 66, 168, 0.15);
}
.card-admin .experience-icon i {
    color: #9642A8;
}

.card-consultant .experience-icon {
    background: rgba(46, 204, 113, 0.15);
}
.card-consultant .experience-icon i {
    color: #2ECC71;
}

/* Navigation Arrows for Experience Cards */
.experience-nav-arrows {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 2rem;
}

.experience-arrow {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.experience-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.experience-arrow:active {
    transform: translateY(0);
}

.experience-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Current card indicator dots */
.experience-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.experience-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ============================
   Certifications Section
   ============================ */
.certification-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.certification-icon {
    position: relative;
    width: 105px;
    height: 107px;
    cursor: pointer;
    transition: all 0.3s ease;
    perspective: 1000px;
    background: transparent;
}

.certification-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    filter: grayscale(0.2);
    background: transparent;
}

.certification-icon:hover img {
    transform: translateY(-10px);
    filter: grayscale(0);
    box-shadow: none;
    background: transparent;
}

.certification-icon::after {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: #6C757D;
    opacity: 0;
    transition: all 0.3s ease;
}

.certification-icon:hover::after {
    opacity: 1;
    bottom: -25px;
}

.certification-icon.active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 118, 214, 0.3) 0%, rgba(0, 118, 214, 0) 70%);
    animation: pulse 1.5s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Modal for certificate details */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #FFFFFF;
    width: 90%;
    max-width: 420px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 20px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background-color: white;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.modal-title {
    color: white;
    flex: 1;
}

.modal-title h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.modal-content {
    padding: 30px;
}

.certification-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 20px;
}

.detail-label {
    font-weight: bold;
    color: #6C757D;
}

.detail-value {
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.verify-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 118, 214, 0.2);
}

.verify-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 118, 214, 0.3);
}

.view-certificate-button {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 73, 94, 0.2);
}

.view-certificate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 73, 94, 0.3);
    color: white;
}

/* Certificate Popup Styles */
.certificate-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.certificate-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.certificate-popup-container {
    background-color: #FFFFFF;
    width: 95%;
    height: 90%;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s ease;
}

.certificate-popup-overlay.active .certificate-popup-container {
    transform: scale(1);
    opacity: 1;
}

.certificate-popup-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.certificate-popup-close {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.certificate-popup-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.certificate-popup-close::before,
.certificate-popup-close::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background-color: white;
}

.certificate-popup-close::before {
    transform: rotate(45deg);
}

.certificate-popup-close::after {
    transform: rotate(-45deg);
}

.certificate-popup-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.certificate-popup-frame {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.certificate-popup-frame.loaded {
    opacity: 1;
}

.certificate-popup-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    z-index: 5;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.certificate-popup-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Full-screen PDF display */
.certificate-pdf-object {
    width: 100%;
    height: 100%;
    border: none;
}

/* Image display */
.certificate-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    height: 100%;
}

/* Fallback message styles */
.certificate-fallback {
    padding: 20px;
    text-align: center;
}

.certificate-fallback p {
    margin-bottom: 15px;
}

.download-certificate-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-certificate-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ============================
   Testimonials Section
   ============================ */
.testimonials {
    background-color: #f8f9fa;
    padding: 10rem 0;
}

.testimonial-slider {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 4rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-quote {
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.testimonial-client {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-img {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 0.5rem solid var(--light-color);
}

.testimonial-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-position {
    font-size: 1.6rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.testimonial-rating .fa-star {
    color: #ddd;
    margin-right: 3px;
}

.testimonial-rating .fa-star.filled {
    color: #FFD700;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.prev-testimonial,
.next-testimonial {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.prev-testimonial:hover,
.next-testimonial:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================
   Contact Section
   ============================ */
.contact-content {
    display: flex;
    gap: 6rem;
}

.contact-info {
    flex: 0 0 40%;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.contact-info-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info-item p {
    font-size: 1.8rem;
    color: var(--gray-color);
}

.contact-info .social-icons {
    margin-top: 2rem;
}

.contact-form {
    flex: 0 0 55%;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 118, 214, 0.2);
}

.form-group textarea {
    height: 15rem;
    resize: none;
}

.contact-form .btn {
    width: 100%;
}

#formStatus {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: none;
}

#formStatus.success {
    background-color: rgba(4, 132, 75, 0.1);
    color: var(--accent-color);
    display: block;
}

#formStatus.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    display: block;
}

/* Form validation styling */
input.invalid,
textarea.invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

/* ============================
   Footer
   ============================ */
footer {
    padding: 4rem 0;
    background-color: var(--dark-color);
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-content p {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.admin-link {
    color: var(--light-gray);
    font-size: 1.4rem;
    opacity: 0.7;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* ============================
   Animations
   ============================ */
[data-aos] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   Accessibility Improvements
   ============================ */
.focused {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 3px !important;
}

.nav-links a:focus,
.btn:focus,
.portfolio-link:focus,
.filter-btn:focus,
.certification-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Image fallback styling */
.img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    color: #999;
    font-size: 3rem;
    height: 100%;
    min-height: 150px;
}

/* ============================
   Responsive Design
   ============================ */
@media screen and (max-width: 1200px) {
    html {
        font-size: 57%;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 55%;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 5rem;
    }
    
    .hero-content,
    .hero-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-content {
        margin-top: 5rem;
        margin-right: 0;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .blob-animation {
        height: 35rem;
        margin: 0 auto;
        max-width: 35rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image,
    .about-text {
        flex: 0 0 100%;
    }
    
    .about-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        flex: 0 0 100%;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 5rem;
    }
    
    .contact-info-item {
        align-items: center;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 50%;
    }
    
    section {
        padding: 6rem 0;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    header.sticky {
        padding: 1rem 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
        box-shadow: -0.5rem 0 2rem rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links li {
        margin: 2rem 0;
    }
    
    .nav-links a {
        color: var(--black);
        font-size: 2rem;
    }
    
    .menu-btn {
        display: block;
        z-index: 1000;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-filter {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
    
    .portfolio-content {
        padding: 2rem;
    }
    
    .portfolio-content h3 {
        font-size: 2rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    /* Adjust hero content for mobile */
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .certification-icons {
        gap: 1rem;
    }
    
    .certification-icon {
        width: 120px;
        height: 120px;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px 20px;
    }
    
    .modal-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .certification-details {
        grid-template-columns: 1fr;
    }
    
    .detail-label {
        margin-top: 10px;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
    
    .testimonial-slide {
        padding: 3rem 2rem;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.8rem;
    }
    
    .portfolio-link {
        width: 100%;
        justify-content: center;
    }
    
    .experience-card-3d {
        min-height: 300px;
    }
    
    .experience-card-front::after {
        content: "Tap for details";
        right: 1.5rem;
        font-size: 0.8rem;
    }
}

/* ============================
   Better Mobile and Touch Support
   ============================ */
@media (hover: none) {
    a, button, .portfolio-tag, .portfolio-link, .social-icons a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 15px 10px;
    }
    
    a:active, button:active {
        transform: scale(0.98);
    }
}

/* Fix for iOS Safari vh units */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* ============================
   Reduced Motion
   ============================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .blob-animation:before {
        animation: none !important;
    }
    
    .scroll-down {
        animation: none !important;
    }
}

/* ============================
   Print Styles
   ============================ */
@media print {
    @page {
        margin: 1cm;
    }
    
    header, footer, .scroll-down, .social-icons, .nav-links, .menu-btn {
        display: none !important;
    }
    
    body, html {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12pt;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto !important;
        height: auto !important;
        padding: 2cm 0 !important;
    }
    
    .hero-content h1 {
        font-size: 24pt !important;
    }
    
    h2 {
        font-size: 20pt !important;
    }
    
    h3 {
        font-size: 16pt !important;
    }
    
    p, li {
        font-size: 12pt !important;
    }
    
    img {
        max-width: 100% !important;
    }
    
    a:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-weight: normal;
    }
    
    .section-line {
        border-top: 1px solid #999 !important;
        background: none !important;
    }
}