/* Root Styles */
html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Scrollbar - Dark Theme Only */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 4px;
}

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

/* Navigation Underline Effect */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Grid Pattern */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

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

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

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

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

/* Header image styling */
.hero-header-image {
    min-height: 400px;
    height: 60vh;
    max-height: 600px;
}

@media (max-width: 768px) {
    .hero-header-image {
        min-height: 300px;
        height: 50vh;
    }
}

/* Ensure text is readable over the header image */
.hero-content {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Smooth image loading */
.hero-header-image img {
    transition: opacity 0.3s ease;
}

.hero-header-image img:not([src]) {
    opacity: 0;
}

/* Custom color scheme based on header image */
:root {
    --primary-red: #70201a;
    --secondary-red: #720000;
    --dark-red: #7d0300;
    --accent-red: #dc2626;
    --dark-bg: #121212;
    --text-light: #f8f9fa;
    --dark-gray: #1f2937;
    --medium-gray: #374151;
    --light-gray: #6b7280;
}

/* Override Tailwind colors with custom palette */
.text-red-600 {
    color: var(--accent-red) !important;
}

.text-red-500 {
    color: var(--primary-red) !important;
}

.bg-red-600 {
    background-color: var(--accent-red) !important;
}

.hover\:bg-red-700:hover {
    background-color: var(--secondary-red) !important;
}

.focus\:border-red-500:focus {
    border-color: var(--primary-red) !important;
}

.hover\:text-red-600:hover {
    color: var(--accent-red) !important;
}

/* Form Styling */
input, textarea {
    background-color: var(--dark-gray) !important;
    border-color: var(--medium-gray) !important;
    color: var(--text-light) !important;
}

input:focus, textarea:focus {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 1px var(--accent-red) !important;
}

/* Enhanced card hover effects for dark theme */
.bg-gray-700:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Dark theme navigation enhancements */
nav {
    backdrop-filter: blur(10px);
    background-color: rgba(31, 41, 55, 0.95) !important;
}

/* Enhanced text shadows for better readability */
.hero-content h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Profile photo styling */
.profile-photo {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #dc2626, #ef4444, #f87171, #dc2626);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

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

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

/* Hero section enhancements */
.hero-section {
    /* background: linear-gradient(135deg, #7c2d12 0%, #991b1b 50%, #dc2626 100%); */
    background: linear-gradient(135deg, #1f2937 25%, #1f2937 50%, #222831 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Blog Card Styles */
.blog-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* Line Clamp Utilities */
.line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Blog Loading Animation */
.blog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.blog-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #374151;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile Navigation */
@media (max-width: 767px) {
    #mobile-menu {
        animation: slideDown 0.3s ease-out;
    }
    
    #mobile-menu.hidden {
        animation: slideUp 0.3s ease-out;
    }
    
    #mobile-menu-button {
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    #mobile-menu-button:hover {
        background-color: rgba(220, 38, 38, 0.1);
    }
    
    #mobile-menu a {
        font-size: 16px;
        font-weight: 500;
        min-height: 44px;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
    }
    
    #mobile-menu a:hover {
        transform: translateX(4px);
    }
}

/* Responsive text sizing for mobile */
@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Adjust profile photo size for mobile */
    .profile-photo img {
        width: 120px;
        height: 120px;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .profile-photo img {
        width: 140px;
        height: 140px;
    }
}

/* Blog Gradient Overlay */
.blog-card .bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 1rem;
    }
}

/* Blog section enhancements */
#blog {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* See All Blogs button styling */
#blog a[href*="medium.com"] {
    position: relative;
    overflow: hidden;
}

#blog a[href*="medium.com"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#blog a[href*="medium.com"]:hover::before {
    left: 100%;
}

/* Enhanced Services Section Styling */
.service-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Clean background elements */

/* Service card hover effects */
.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(220, 38, 38, 0.1);
}

/* Gradient text effect */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Enhanced button hover effects */
.service-card a {
    position: relative;
    overflow: hidden;
}

.service-card a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.service-card a:hover::after {
    left: 100%;
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}

/* Call to action section enhancements */
#services .bg-gradient-to-r {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

#services .bg-gradient-to-r::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    border-radius: inherit;
}

/* Service card icon animations */
.service-card .group-hover\:scale-110:hover {
    transform: scale(1.1);
}

/* Enhanced service card transitions */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Service card border glow effect */
.service-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(220, 38, 38, 0.1),
        0 0 20px rgba(220, 38, 38, 0.1);
}

/* Service card content animations */
.service-card h3 {
    transition: color 0.3s ease;
}

.service-card p {
    transition: color 0.3s ease;
}

/* Service card feature list animations */
.service-card ul li {
    transition: all 0.3s ease;
}

.service-card:hover ul li {
    transform: translateX(4px);
}

.service-card:hover ul li svg {
    transform: scale(1.1);
}

/* Service card action button animations */
.service-card .group-hover\:translate-x-1:hover {
    transform: translateX(4px);
}

/* Enhanced gradient text for service titles */
.service-card h3 {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: white !important;
}

.service-card:hover h3 {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: white !important;
}

/* Service icon hover effects */
.service-card:hover .w-16 {
    background-color: #dc2626 !important;
}

.service-card:hover .w-16 svg {
    color: white !important;
}
.service-card .text-2xl {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Mobile responsive enhancements */
@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
    
    .service-card ul li {
        font-size: 0.75rem;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .service-card {
        padding: 2rem;
    }
}

/* Large screen enhancements */
@media (min-width: 1280px) {
    .service-card {
        padding: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.75rem;
    }
    
    .service-card p {
        font-size: 1.125rem;
    }
}

/* Certification Cards Styling */
.certification-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(220, 38, 38, 0.1);
}

/* Certification logo container */
.certification-card .w-10 {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.certification-card:hover .w-10 {
    background-color: rgba(220, 38, 38, 0.1) !important;
}

/* Certification text styling */
.certification-card h4 {
    font-weight: 600;
    line-height: 1.2;
}

.certification-card p {
    line-height: 1.2;
}

/* Responsive adjustments for certifications */
@media (max-width: 640px) {
    .certification-card {
        padding: 0.75rem;
    }
    
    .certification-card .w-10 {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .certification-card .w-6 {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .certification-card h4 {
        font-size: 0.875rem;
    }
    
    .certification-card p {
        font-size: 0.75rem;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .certification-card {
        padding: 1rem;
    }
}

/* Large screen enhancements for certifications */
@media (min-width: 1280px) {
    .certification-card {
        padding: 1.25rem;
    }
    
    .certification-card h4 {
        font-size: 1rem;
    }
    
    .certification-card p {
        font-size: 0.875rem;
    }
}

/* Career Ladder Styling */
.career-ladder-step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.career-ladder-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.career-ladder-step:hover::before {
    opacity: 1;
}

.career-ladder-step:hover {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(220, 38, 38, 0.1);
}

/* Current position special styling */
.career-ladder-step.bg-gradient-to-r {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.3);
}

.career-ladder-step.bg-gradient-to-r:hover {
    box-shadow: 0 20px 40px -5px rgba(34, 197, 94, 0.4);
    transform: scale(1.02);
}

/* Ladder connector styling */
.career-ladder-step + div {
    transition: all 0.3s ease;
}

.career-ladder-step:hover + div {
    background: linear-gradient(to bottom, #22c55e, #22c55e) !important;
}

/* Career ladder responsive adjustments */
@media (max-width: 768px) {
    .career-ladder-step {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .career-ladder-step h3 {
        font-size: 1.125rem;
    }
    
    .career-ladder-step p {
        font-size: 0.875rem;
    }
    
    .career-ladder-step .w-16 {
        width: 3rem;
        height: 3rem;
    }
    
    .career-ladder-step .w-12 {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .career-ladder-step .w-8 {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .career-ladder-step .w-6 {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Progress summary styling */
.career-ladder-step + .mt-12 {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Certification Timeline Styling */
.certification-timeline-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.certification-timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certification-timeline-card:hover::before {
    opacity: 1;
}

.certification-timeline-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(220, 38, 38, 0.1);
}

/* Timeline responsive adjustments */
@media (max-width: 768px) {
    .certification-timeline-card {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .certification-timeline-card h3 {
        font-size: 1rem;
    }
    
    .certification-timeline-card p {
        font-size: 0.875rem;
    }
    
    /* Stack timeline items vertically on mobile */
    .certification-timeline-card .w-5\/12 {
        width: 100%;
        text-align: center !important;
        padding: 0 !important;
        margin-bottom: 1rem;
    }
    
    .certification-timeline-card .absolute {
        display: none;
    }
}

/* Modern Certification Cards */
.certification-modern-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.certification-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certification-modern-card:hover::before {
    opacity: 1;
}

.certification-modern-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Modern card responsive adjustments */
@media (max-width: 768px) {
    .certification-modern-card {
        padding: 1.5rem;
    }
    
    .certification-modern-card h3 {
        font-size: 1.125rem;
    }
    
    .certification-modern-card .w-16 {
        width: 3rem;
        height: 3rem;
    }
    
    .certification-modern-card .w-8 {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* 3D Certification Showcase */
.certification-hub-3d {
    animation: hubPulse 3s ease-in-out infinite;
    position: relative;
}

.certification-hub-3d::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: hubGlow 2s ease-in-out infinite alternate;
}

.certification-3d-card {
    animation: float3D 6s ease-in-out infinite;
    position: relative;
    transform-style: preserve-3d;
}

.certification-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certification-3d-card:hover::before {
    opacity: 1;
}

.certification-3d-card:hover {
    transform: translateZ(20px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.stat-card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-3d:hover::before {
    opacity: 1;
}

.stat-card-3d:hover {
    transform: translateZ(10px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Individual badge animations */
.aws-badge {
    animation: orbitAWS 20s linear infinite;
}

.cissp-badge {
    animation: orbitCISSP 20s linear infinite;
}

.azure-badge {
    animation: orbitAzure 20s linear infinite;
}

.gcp-badge {
    animation: orbitGCP 20s linear infinite;
}

/* Keyframe Animations */
@keyframes hubPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
    }
}

@keyframes hubGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(5deg);
    }
}

@keyframes orbitAWS {
    0% {
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

@keyframes orbitCISSP {
    0% {
        transform: rotate(90deg) translateX(200px) rotate(-90deg);
    }
    100% {
        transform: rotate(450deg) translateX(200px) rotate(-450deg);
    }
}

@keyframes orbitAzure {
    0% {
        transform: rotate(180deg) translateX(200px) rotate(-180deg);
    }
    100% {
        transform: rotate(540deg) translateX(200px) rotate(-540deg);
    }
}

@keyframes orbitGCP {
    0% {
        transform: rotate(270deg) translateX(200px) rotate(-270deg);
    }
    100% {
        transform: rotate(630deg) translateX(200px) rotate(-630deg);
    }
}

/* Connection line animations */
.connection-line {
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5));
}

/* Responsive adjustments for 3D showcase */
@media (max-width: 768px) {
    .certification-hub-3d {
        width: 6rem;
        height: 6rem;
    }
    
    .certification-3d-card {
        padding: 1rem;
        animation: none;
    }
    
    .certification-floating-badge {
        position: static !important;
        transform: none !important;
        margin: 1rem 0;
        animation: none !important;
    }
    
    .certification-orbit-container svg {
        display: none;
    }
    
    .stat-card-3d {
        padding: 1.5rem;
    }
    
    .stat-card-3d .text-4xl {
        font-size: 2rem;
    }
}

/* Testimonials Carousel Styling */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

#testimonial-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 200%; /* 2 slides */
}

#testimonial-slides > div {
    width: 50%; /* Each slide takes half the container width */
    flex-shrink: 0;
}

.testimonial-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-dot:hover {
    transform: scale(1.2);
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for testimonials carousel */
@media (max-width: 768px) {
    #testimonial-slides {
        width: 200%;
    }
    
    #testimonial-slides > div {
        width: 50%;
    }
    
    .testimonial-card {
        margin-bottom: 1rem;
    }
}

/* Certification Showcase Styling */
.certification-hub {
    animation: pulse 2s infinite;
    position: relative;
}

.certification-hub::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(220, 38, 38, 0.3), rgba(239, 68, 68, 0.3));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 10s linear infinite;
}

.certification-orbit {
    animation: float 6s ease-in-out infinite;
}

.certification-badge {
    animation: orbit 20s linear infinite;
}

.certification-badge:nth-child(1) {
    animation-delay: 0s;
}

.certification-badge:nth-child(2) {
    animation-delay: -5s;
}

.certification-badge:nth-child(3) {
    animation-delay: -10s;
}

.certification-badge:nth-child(4) {
    animation-delay: -15s;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
    }
}

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

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

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

/* Certification badge hover effects */
.certification-badge:hover {
    animation-play-state: paused;
    transform: scale(1.1) !important;
    z-index: 10;
}

/* Connection lines animation */
.certification-orbit svg line {
    stroke-dasharray: 5,5;
    animation: dash 2s linear infinite;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 20;
    }
}

/* Responsive adjustments for certification showcase */
@media (max-width: 768px) {
    .certification-orbit {
        height: 300px;
    }
    
    .certification-badge {
        position: static !important;
        transform: none !important;
        margin: 1rem 0;
        animation: none !important;
    }
    
    .certification-orbit svg {
        display: none;
    }
    
    .certification-hub {
        padding: 1.5rem;
    }
    
    .certification-hub .w-20 {
        width: 4rem;
        height: 4rem;
    }
    
    .certification-hub .w-10 {
        width: 2rem;
        height: 2rem;
    }
}

/* Blog Grid Layout Stability */
#blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 400px; /* Prevent layout shift */
}

#blog-page-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 400px; /* Prevent layout shift */
}

@media (min-width: 768px) {
    #blog-posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #blog-page-posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #blog-posts-container {
        grid-template-columns: repeat(2, 1fr); /* Keep index.html as 2 columns */
    }
    
    #blog-page-posts-container {
        grid-template-columns: repeat(4, 1fr); /* Blog page uses 4 columns */
    }
}

/* Ensure blog cards have consistent height */
.blog-card {
    height: fit-content;
    min-height: 300px;
} 