/* ===== CSS Variables ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --page-bg: #ffffff;
    --light-bg: #ffffff;
    --tint-lavender: #f3f1ff;
    --tint-sky: #eef6ff;
    --tint-mint: #effaf5;
    --tint-peach: #f3f4f6;
    --light-text: #f8fafc;
    --dark-text: #1e293b;
    --gray-text: #000000;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --bg-pattern-primary: rgba(102, 126, 234, 0.06);
    --bg-pattern-secondary: rgba(118, 75, 162, 0.06);
    --bg-pattern-opacity: 0.06;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ===== Skip to Main Content (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--page-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1100;
    padding: 0.9rem 0;
    min-height: 64px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo {
    height: 50px;
    width: 50px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.brand-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    display: none; /* Remove underline effect for dropdown toggle */
}

.nav-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light-bg);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    min-width: 180px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown-menu:hover ~ .nav-dropdown-toggle i,
.nav-dropdown:has(.nav-dropdown-menu:hover) .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--dark-text);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.nav-dropdown-menu li a:hover {
    background: var(--primary-light);
    color: white;
}

.nav-dropdown-menu li a::after {
    display: none; /* Remove underline effect for dropdown links */
}

/* Blog dropdown subtitles */
.nav-blog-subtitles {
    min-width: 200px;
}

.nav-blog-subtitles li {
    cursor: default;
}

.nav-blog-subtitles .nav-subtitle,
.nav-blog-subtitles .nav-subtitle-link {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-text);
}

.nav-blog-subtitles .nav-subtitle-link:hover,
.nav-blog-subtitles .nav-subtitle-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.nav-blog-subtitles li:hover {
    background: transparent;
}

.nav-blog-subtitles .nav-subtitle:hover {
    color: var(--dark-text);
}

/* THINK AND DO nested dropdown - Posts & Articles */
.nav-item-think-and-do {
    position: relative;
}

.nav-think-subtitles {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 140px;
    margin-left: 0;
}

.nav-item-think-and-do:hover .nav-think-subtitles {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-think-subtitles li {
    cursor: pointer;
}

.nav-think-subtitles .nav-link {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .nav-think-subtitles {
        position: static;
        padding-left: 1.5rem;
        margin-top: 0.5rem;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Mobile Dropdown Styles */
@media (max-width: 1024px) {
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0;
        min-width: auto;
        width: 100%;
        text-align: center;
        transform: translateY(0);
        transition: height 0.3s ease-out, opacity 0.3s ease-out;
        overflow: hidden;
        height: 0;
        opacity: 0;
        visibility: hidden;
        margin-top: 0;
    }

    .nav-dropdown-menu.active {
        height: auto;
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown-menu li a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 0;
    }

    .nav-dropdown-menu li a:hover {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary-color);
    }

    .nav-dropdown-toggle.active i {
        transform: rotate(180deg);
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 0;
        visibility: hidden;
        height: 0;
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    position: relative;
    visibility: visible;
    opacity: 1;
    transition: none !important;
}
.hamburger span {
    background: var(--dark-text);
}

/* Hide hamburger on desktop, show nav-menu */
@media (min-width: 1025px) {
    .hamburger,
    .navbar .hamburger,
    .hamburger#hamburger,
    #hamburger,
    nav .hamburger,
    .navbar .container .hamburger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .hamburger span {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Ensure hamburger is always visible on mobile devices */
@media (max-width: 1024px) {
    .navbar .hamburger,
    .hamburger#hamburger,
    #hamburger,
    nav .hamburger,
    .navbar .container .hamburger,
    body .hamburger,
    html .hamburger,
    * .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001 !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        min-width: 30px !important;
        min-height: 25px !important;
        transition: none !important;
        pointer-events: auto !important;
    }
    
    .hamburger span,
    .hamburger span:nth-child(1),
    .hamburger span:nth-child(2),
    .hamburger span:nth-child(3) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 25px !important;
        height: 3px !important;
        background: var(--dark-text) !important;
        transition: transform 0.3s ease, background 0.3s ease !important;
    }
    
    /* Hide nav-menu on mobile by default, show when active */
    .nav-menu {
        display: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    opacity: 1 !important;
    transform: none !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('images/CODING COLLEN.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .hero-background {
        background-position: center top;
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.45) 0%, rgba(30, 41, 59, 0.4) 50%, rgba(15, 23, 42, 0.45) 100%);
    backdrop-filter: blur(0.5px);
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.name {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    min-height: 60px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.typing-text {
    color: #c7d2fe;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--light-text);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Hero social icons: ensure visibility on dark background */
.hero .social-links {
    margin-top: 0.5rem;
}
.hero .social-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero .social-link:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .image-wrapper {
        max-width: 280px;
    }
}

.profile-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--light-text);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    display: block;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: float-badge 3s infinite ease-in-out;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 1s;
}

.badge-3 {
    top: 50%;
    left: -15%;
    animation-delay: 2s;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--dark-text);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--dark-text);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.about .section-title,
.services .section-title,
.portfolio .section-title,
.contact .section-title {
    color: var(--dark-text);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about {
    position: relative;
    background: var(--light-bg);
    overflow: hidden;
}

.home-page .about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--tint-peach) 0%, #ffffff 55%, var(--tint-sky) 100%);
    z-index: 0;
}

.home-page .about > .container {
    position: relative;
    z-index: 1;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-header-text {
    display: flex;
    flex-direction: column;
}

.about .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.about .section-header .title-underline {
    margin: 0.5rem 0 0 0;
}

.about-text {
    margin-top: 0;
}

.about-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
    max-width: 900px;
}

.about-hero-stat {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.about-hero-stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.about-hero-stat span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 3.5rem;
    align-items: start;
}

.about-media-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr;
    gap: 1rem;
}

.about-media-main,
.about-media-side-item {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0f172a;
}

.about-media-main img,
.about-media-side-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-media-main {
    min-height: 260px;
    max-height: 380px;
}

.about-media-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.image-container {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.about .image-container {
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
    padding: 10px;
    box-sizing: border-box;
}

.about .about-photo {
    border-radius: 50%;
}

.about-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--light-text);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.2;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.about-services-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    color: var(--gray-text);
}

.about-services-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.about-services-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.1rem;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 768px) {
    .about-hero-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin-top: 1.25rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-media-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .about-media-side {
        grid-template-rows: 1fr 1fr;
    }

    .about-text {
        text-align: center;
    }

    .about-text .about-buttons {
        display: flex;
        justify-content: center;
    }
}

/* Compact section and card spacing on mobile */
@media (max-width: 768px) {
    .services,
    .portfolio,
    .testimonials-section,
    .journey-section,
    .professional-section,
    .philosophy-section,
    .stats-section,
    .blog-preview-section {
        padding: 3rem 0;
    }

    .service-card,
    .about-card,
    .testimonial-card,
    .contact-info-card,
    .contact-form {
        padding: 1.75rem;
    }

    .section-header {
        margin-bottom: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-intro {
        margin-bottom: 2rem;
    }
}

.about-tagline {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* ===== Skills Section ===== */
.skills-section {
    background: var(--light-bg);
    padding: 5rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skill-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.skill-link:hover {
    gap: 1rem;
    color: var(--primary-light);
}

/* ===== Services Section ===== */
.services {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

/* Home page Services block with purple background */
body.home-page #services {
    background: #4f46e5;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(99,102,241,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.services-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.services-cta {
    margin-top: 2rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}


.home-page .faq-section {
    position: relative;
    overflow: hidden;
    background: transparent !important;
}

.home-page .faq-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            0deg,
            rgba(251, 246, 238, 0.78),
            rgba(251, 246, 238, 0.78)
        ),
        url("images/collen coding.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.05) contrast(1.02);
    z-index: 0;
}

.home-page .faq-section > .container {
    position: relative;
    z-index: 1;
}

.faq-section {
    padding: 4rem 0;
}

body:not(.home-page) .faq-section {
    background: linear-gradient(135deg, var(--tint-lavender) 0%, #ffffff 55%, var(--tint-mint) 100%);
}

.faq-intro {
    text-align: center;
    margin: 0 auto 2.5rem;
    color: var(--gray-text);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.faq-item {
    background: var(--light-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.faq-item > summary {
    list-style: none;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    cursor: pointer;
    user-select: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-text);
}

.faq-question-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-question-left i {
    color: var(--primary-color);
    font-size: 1rem;
}

.faq-chevron {
    color: rgba(30, 41, 59, 0.65);
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer p {
    margin: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.04));
    backdrop-filter: blur(6px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-xl);
}

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

.services .service-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(56, 189, 248, 0.06));
}

.services .service-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(251, 146, 60, 0.06));
}

.services .service-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(45, 212, 191, 0.06));
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-summary {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1.05rem;
}

.service-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-details p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-details p:last-child {
    margin-bottom: 0;
}

/* Modern Service Card Styles */
.service-card-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.04));
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-xl);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-icon-modern {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 18px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.service-card-modern h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.3;
}

.service-summary-modern {
    color: var(--gray-text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-toggle-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: auto;
}

.service-toggle-btn:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.service-toggle-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.service-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.service-details-modern {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0;
}

.service-details-modern.active {
    max-height: 2000px;
    padding-top: 2rem;
    margin-top: 1.5rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.service-details-content {
    animation: fadeInUp 0.4s ease;
}

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

.service-details-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    padding: 0.75rem 0;
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.service-description {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

/* Responsive adjustments for service cards - Services page mobile centering */
@media (max-width: 768px) {
    .page-services .services .container {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .page-services .services-intro {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-services .services-intro .section-title,
    .page-services .services-intro p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-services .services-grid {
        justify-items: center;
        width: 100%;
        max-width: 100%;
    }
    
    .page-services .service-card-modern {
        padding: 2rem 1.5rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .page-services .service-card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }
    
    .page-services .service-icon-modern {
        margin: 0 auto;
    }
    
    .page-services .service-card-modern h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .page-services .service-summary-modern {
        font-size: 1rem;
        text-align: center;
    }
    
    .page-services .service-toggle-btn {
        align-self: center;
        width: 100%;
        max-width: 280px;
    }
    
    .page-services .service-details-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .page-services .service-details-content h4 {
        justify-content: center;
    }
    
    .page-services .service-card-modern {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.05));
    }
    
    .page-services .service-features {
        text-align: left;
        max-width: 100%;
    }
    
    .page-services .service-features li {
        justify-content: flex-start;
    }
    
    .page-services .service-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-services .page-header .container {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .page-services .page-title,
    .page-services .page-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-services .cta-section .container {
        text-align: center;
    }
    
    .page-services .cta-content {
        text-align: center;
        align-items: center;
    }
    
    .page-services .cta-content h2,
    .page-services .cta-content p {
        text-align: center;
    }
    
    .page-services .cta-content .btn {
        margin-left: auto;
        margin-right: auto;
    }
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: var(--primary-light);
}

.service-list {
    list-style: none;
}

.service-list li {
    color: var(--dark-text);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* ===== Key numbers bar & Skills strip (Home) ===== */
.key-numbers-bar p {
    font-size: clamp(0.9rem, 2vw, 1rem);
}
.skills-strip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}
@media (max-width: 768px) {
    .key-numbers-bar {
        padding: 1rem 0 !important;
    }
    .skills-strip {
        padding: 1.5rem 0 !important;
    }
}

/* ===== Portfolio Section ===== */
.portfolio {
    background: linear-gradient(135deg, var(--tint-lavender) 0%, #ffffff 55%, var(--tint-sky) 100%);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    color: var(--light-text);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--light-bg);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item.portfolio-card-modern {
    position: relative;
}

.portfolio-image {
    position: relative;
    width: 100%;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--light-text);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-placeholder {
    transform: scale(1.1);
}

.portfolio-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: var(--light-bg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1rem;
    text-align: center;
}

.portfolio-overlay p {
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 1.5rem;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
}

.portfolio-info {
    padding: 1.5rem;
    background: var(--light-bg);
}

.portfolio-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.portfolio-brief {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.portfolio-info p {
    color: var(--gray-text);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.portfolio-short-desc {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Client Information Section */
.client-info-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(99, 102, 241, 0.1);
}

.client-info-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-info-section h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.client-details {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.client-details p {
    margin-bottom: 0.75rem;
    color: var(--dark-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.client-details p:last-child {
    margin-bottom: 0;
}

.client-details strong {
    color: var(--dark-text);
    font-weight: 600;
    margin-right: 0.5rem;
}

.client-testimonial {
    font-style: italic;
    color: var(--gray-text);
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
    position: relative;
    padding-left: 2rem;
}

.client-testimonial::before {
    content: '"';
    position: absolute;
    left: 0.5rem;
    top: -0.25rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Tech Stack Badges */
.portfolio-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--gradient-1);
    color: var(--light-text);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.portfolio-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Portfolio Details (Expandable Content) */
.portfolio-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    padding: 0;
    margin-top: 0;
}

.portfolio-item.expanded .portfolio-details {
    max-height: 5000px;
    opacity: 1;
    padding: 2rem 0 0;
    margin-top: 2rem;
    border-top: 2px solid rgba(99, 102, 241, 0.1);
}

.portfolio-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-details h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.portfolio-full-desc,
.portfolio-features,
.portfolio-challenges,
.portfolio-results {
    margin-bottom: 2rem;
}

.portfolio-full-desc p {
    color: var(--gray-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.portfolio-features ul,
.portfolio-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-features li,
.portfolio-results li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--gray-text);
    line-height: 1.7;
}

.portfolio-features li::before,
.portfolio-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.portfolio-challenges p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.portfolio-challenges p strong {
    color: var(--dark-text);
    font-weight: 600;
}

.portfolio-toggle-btn {
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

/* Hide "Read More" button when expanded */
.portfolio-item.expanded .portfolio-actions .portfolio-toggle-btn {
    display: none;
}

/* Hide "Read Less" button when collapsed */
.portfolio-item:not(.expanded) .portfolio-details .portfolio-toggle-btn {
    display: none;
}

/* Project Detail Page Styles */
.project-detail {
    padding: 5rem 0;
}

.project-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-image-large {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    background: var(--light-bg);
    padding: 0;
}

.project-header {
    margin-bottom: 3rem;
}

.project-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-intro {
    font-size: 1.25rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.project-detail .portfolio-full-desc,
.project-detail .portfolio-features,
.project-detail .portfolio-challenges,
.project-detail .portfolio-results {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}

.project-detail .portfolio-full-desc h3,
.project-detail .portfolio-features h3,
.project-detail .portfolio-challenges h3,
.project-detail .portfolio-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .project-header h2 {
        font-size: 2rem;
    }
    
    .project-intro {
        font-size: 1.1rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-actions .btn {
        width: 100%;
    }
    
    .project-detail .portfolio-full-desc,
    .project-detail .portfolio-features,
    .project-detail .portfolio-challenges,
    .project-detail .portfolio-results {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .project-detail .portfolio-full-desc h3,
    .project-detail .portfolio-features h3,
    .project-detail .portfolio-challenges h3,
    .project-detail .portfolio-results h3 {
        font-size: 1.25rem;
    }
}

.portfolio-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    gap: 1rem;
    color: var(--primary-light);
}

.portfolio-link-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
}

/* ===== Blog Preview Section ===== */
.blog-preview-section {
    padding: 4.5rem 0;
    background: var(--light-bg);
}

.blog-preview-section .section-title {
    color: var(--dark-text);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-preview-card {
    background: var(--light-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.blog-preview-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--light-bg);
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.1);
}

.blog-preview-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.85rem;
    background: var(--gradient-1);
    color: var(--light-text);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.blog-preview-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-preview-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-preview-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-text);
}

.blog-preview-date i {
    font-size: 0.75rem;
}

.blog-preview-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-preview-excerpt {
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-preview-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-preview-link:hover {
    color: var(--primary-light);
    gap: 0.75rem;
}

.blog-preview-cta {
    text-align: center;
    margin-top: 3rem;
}

.blog-preview-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ===== Contact Section ===== */
.contact {
    background: linear-gradient(135deg, var(--tint-sky) 0%, #ffffff 50%, var(--tint-peach) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(99,102,241,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.contact-intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-intro-text {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    align-items: start;
}

/* Contact Info Cards */
.contact-info-section {
    display: grid;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.contact-info-card:hover::before {
    transform: scaleX(1);
}

.contact-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.contact-info-card:hover .contact-icon-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.contact-info-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
}

.contact-info-card p {
    color: var(--gray-text);
    margin: 0;
    font-size: 1rem;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-info-card a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.contact-form button[type="submit"] {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
}

.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.form-submit-btn i {
    transition: transform 0.3s ease;
}

.form-submit-btn:hover i {
    transform: translateX(5px);
}

/* Social Media Section */
.contact-social-section {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 3rem auto 0;
    position: relative;
    border-radius: 24px;
    background: #4f46e5;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.contact-social-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
}

.contact-social-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.contact-social-subtitle {
    font-size: 1.1rem;
    color: rgba(249, 250, 251, 0.9);
    margin: 0 auto 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.social-links-contact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.social-link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.social-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.social-link-card:hover::before {
    transform: scaleX(1);
}

.social-link-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-text);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.social-link-icon.facebook {
    background: #1877F2;
}

.social-link-icon.tiktok {
    background: #000000;
}

.social-link-icon.linkedin {
    background: #0077B5;
}

.social-link-icon.github {
    background: #171515;
}

.social-link-card:hover .social-link-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.social-link-content {
    flex: 1;
    text-align: left;
}

.social-link-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.social-link-content p {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.45;
}

.social-link-arrow {
    font-size: 1rem;
    color: var(--gray-text);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-link-card:hover .social-link-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-info-section {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .social-links-contact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-intro {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .contact-intro-title {
        font-size: 2rem;
    }
    
    .contact-intro-text {
        font-size: 1.1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .contact-info-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .contact-info-card {
        padding: 1.75rem;
    }
    
    .contact-icon-large {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-info-card h4 {
        font-size: 1.15rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-social-section {
        padding-top: 2.5rem;
    }
    
    .contact-social-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-social-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .social-links-contact {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .social-link-card {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .social-link-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.35rem;
    }
    
    .social-link-content h4 {
        font-size: 1rem;
    }
    
    .social-link-content p {
        font-size: 0.8rem;
    }
    
    .social-link-arrow {
        font-size: 1rem;
    }
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: var(--light-bg);
    color: var(--dark-text);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--light-bg);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-text);
}

.form-group textarea {
    resize: vertical;
}

/* ===== Form Messages ===== */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 50px;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-message i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-message.success i {
    color: #059669;
}

.form-message.error i {
    color: #dc2626;
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background: #4f46e5;
    padding: 4rem 0;
}

/* Ensure purple background specifically on home page */
body.home-page .testimonials-section {
    background: #4f46e5;
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: #000000;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.8;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin: 0;
}

/* ===== About Page Sections ===== */
.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.journey-section,
.professional-section,
.achievements-section,
.philosophy-section,
.beyond-work-section,
.vision-section,
.work-together-section {
    padding: 4rem 0;
}

.journey-section {
    background: #4f46e5;
    position: relative;
    overflow: hidden;
}

.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="80" height="80" patternUnits="userSpaceOnUse"><path d="M 80 0 L 0 0 0 80" fill="none" stroke="rgba(99,102,241,0.03)" stroke-width="1"/></pattern></defs><rect width="80" height="80" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
    z-index: 0;
}

.journey-section .container {
    position: relative;
    z-index: 1;
}

.journey-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.journey-intro p {
    font-size: 1.25rem;
    color: var(--dark-text);
    line-height: 1.9;
    font-weight: 400;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.journey-card {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.journey-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.journey-card:hover::before {
    transform: scaleX(1);
}

.journey-card-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.08);
    line-height: 1;
    z-index: 0;
}

.journey-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.journey-card:hover .journey-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.journey-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.journey-card p {
    font-size: 1.05rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .journey-card {
        padding: 2.5rem;
    }
}

.professional-section {
    background: var(--light-bg);
}

.professional-section .about-card {
    align-items: center;
    text-align: center;
}

.professional-section .about-card p {
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .professional-section .about-cards-grid {
        justify-items: center;
    }

    .professional-section .about-card {
        max-width: 420px;
        width: 100%;
    }

    /* Center Background cards on About page (mobile) */
    .journey-section .about-cards-grid {
        justify-items: center;
    }

    .journey-section .about-card {
        max-width: 420px;
        width: 100%;
        text-align: center;
        align-items: center;
    }
}

.professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.professional-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.professional-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.professional-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.professional-card p {
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.8;
}

.achievements-section {
    background: var(--light-bg);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.achievement-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.achievement-card p {
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.8;
}

.philosophy-section {
    background: var(--light-bg);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.philosophy-content > p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.philosophy-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.philosophy-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.philosophy-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.philosophy-card p {
    color: var(--gray-text);
    line-height: 1.8;
}

.philosophy-note {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.8;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

/* About page – unified card layout */
.about-cards-grid {
    display: grid;
    gap: 1.75rem;
    margin-top: 2rem;
}
.about-cards-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.about-cards-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.about-cards-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
    .about-cards-grid.grid-3,
    .about-cards-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .about-cards-grid.grid-2,
    .about-cards-grid.grid-3,
    .about-cards-grid.grid-4 { grid-template-columns: 1fr; }
}
.about-card {
    background: #fff;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
}
.about-card:hover::before {
    transform: scaleX(1);
}
.about-card-step {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.2);
    line-height: 1;
}
.about-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
    transition: transform 0.3s ease;
}
.about-card:hover .about-card-icon {
    transform: scale(1.08);
}
.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.about-card p {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.75;
    margin: 0;
}

.beyond-work-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.beyond-work-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(99,102,241,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.beyond-work-section .container {
    position: relative;
    z-index: 1;
}

.beyond-work-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured Card */
.beyond-work-featured {
    margin-bottom: 4rem;
}

.beyond-work-featured-card {
    background: var(--light-bg);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.beyond-work-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    z-index: 1;
}

.beyond-work-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.beyond-work-featured-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.beyond-work-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--light-text);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.beyond-work-featured-card:hover .beyond-work-icon-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.beyond-work-featured-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.beyond-work-featured-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin: 0;
    font-weight: 500;
}

.beyond-work-featured-description {
    font-size: 1.15rem;
    color: var(--gray-text);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.beyond-work-featured-cta {
    text-align: center;
}

/* Two Column Grid */
.beyond-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
}

@media (max-width: 1024px) {
    .beyond-work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .beyond-work-featured-card {
        padding: 3rem;
    }
    
    .beyond-work-featured-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .beyond-work-icon-large {
        margin: 0 auto;
    }
}

.beyond-work-card {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.beyond-work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.beyond-work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.beyond-work-card:hover::before {
    transform: scaleX(1);
}

.beyond-work-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.beyond-work-card:hover .beyond-work-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.beyond-work-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.beyond-work-card p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.beyond-work-highlight {
    margin-top: 2rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.beyond-work-highlight h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.beyond-work-highlight p {
    color: var(--dark-text);
    margin-bottom: 0;
    font-size: 1rem;
}

.beyond-work-cta {
    margin-top: 2rem;
    text-align: center;
}

.blog-topics-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 3px solid rgba(99, 102, 241, 0.15);
    position: relative;
}

.blog-topics-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.blog-topics-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.blog-topics-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.blog-topics-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-topics-container {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-topic-featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 25px;
    padding: 3rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.blog-topic-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.blog-topic-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.blog-topic-featured:hover::before {
    transform: scaleY(1);
}

.blog-topic-featured-icon {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 25px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--light-text);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.blog-topic-featured:hover .blog-topic-featured-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.blog-topic-featured-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.blog-topic-featured-content h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-topic-featured-content p {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin: 0;
}

.blog-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .blog-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-topic-featured {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }
    
    .blog-topic-featured-icon {
        margin: 0 auto;
    }
}

.blog-topic {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-topic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.blog-topic:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.blog-topic:hover::before {
    opacity: 0.05;
}

.blog-topic > * {
    position: relative;
    z-index: 1;
}

.blog-topic-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-text);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.blog-topic h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.blog-topic p {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.vision-section {
    background: var(--light-bg);
}

.vision-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vision-item {
    text-align: center;
    padding: 2rem;
}

.vision-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.vision-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.vision-item p {
    color: var(--gray-text);
    line-height: 1.8;
}

.work-together-section {
    background: var(--light-bg);
}

.work-together-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.work-together-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-together-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-together-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.work-together-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.work-together-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.work-together-card p {
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.work-together-card .btn {
    margin-top: auto;
}

/* ===== Footer ===== */
.footer {
    background: #000000;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 60px;
    width: 60px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #cccccc;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #cccccc;
}

/* ===== WhatsApp Floating Icon ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 20px;
    background: #25D366;
    color: var(--light-text);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: var(--light-text);
}

/* ===== Cookie Settings Button ===== */
.cookie-settings-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 60px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--light-text);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.cookie-settings-btn.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.cookie-settings-btn:active {
    transform: scale(1.05) rotate(10deg);
}

.cookie-settings-btn i {
    color: var(--light-text);
    transition: transform 0.3s ease;
}

.cookie-settings-btn:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .cookie-settings-btn {
        bottom: 50px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-1);
    color: var(--light-text);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
    color: var(--light-text);
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
}

.cookie-consent-text a {
    color: var(--primary-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: var(--primary-color);
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--gradient-1);
    color: var(--light-text);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: #cccccc;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.25rem 1.5rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* ===== Base Mobile Styles ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Final safeguard: keep hamburger visible on all pages in mobile view */
@media (max-width: 1024px) {
    body .navbar .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1001 !important;
    }

    body .navbar .hamburger span {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body .nav-menu {
        display: none !important;
    }

    body .nav-menu.active {
        display: flex !important;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hamburger,
    .navbar .hamburger,
    .hamburger#hamburger,
    #hamburger,
    nav .hamburger,
    .navbar .container .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001 !important;
        position: relative !important;
        transition: none !important;
    }

    .navbar .container {
        position: relative;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .image-wrapper {
        max-width: 280px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .name {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hamburger,
    .navbar .hamburger,
    .hamburger#hamburger,
    #hamburger,
    nav .hamburger,
    .navbar .container .hamburger {
        display: flex !important;
        z-index: 1001 !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        min-width: 25px !important;
        min-height: 20px !important;
        transition: none !important;
    }
    
    /* Mobile: center hero intro text */
    .hero-content {
        text-align: center;
    }

    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hamburger span {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 25px !important;
        height: 3px !important;
        background: var(--dark-text) !important;
        transition: transform 0.3s ease, background 0.3s ease !important;
    }

    .navbar .container {
        position: relative;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .nav-logo {
        height: 40px;
        width: 40px;
    }

    .footer-logo {
        height: 50px;
        width: 50px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .page-header {
        padding-top: 100px;
        min-height: 320px;
        margin-bottom: 3rem;
    }
    
    .page-title {
        font-size: 1.15rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 0.25rem;
    }
    
    .page-subtitle {
        font-size: 0.7rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 0.25rem;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--light-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        display: none;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }


    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .about .section-header .title-underline {
        margin: 0.5rem auto 0;
    }

    .about-image {
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
    }

    .image-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-tagline {
        text-align: center;
    }
    
    .about-text h3 {
        text-align: center;
    }
    
    .about-text p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }
    
    .about-text .btn {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    section {
        padding: 3rem 0;
    }

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

    .section-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .title-underline {
        margin: 0.5rem auto 0;
    }
    
    .journey-intro {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .journey-intro p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }
    
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .journey-card {
        padding: 2rem;
        text-align: center;
    }
    
    .journey-card-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }
    
    .journey-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin: 0 auto 1.25rem;
    }
    
    .journey-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .journey-card p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    
    /* Center all about page sections on mobile */
    .section-intro {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }
    
    .professional-card,
    .achievement-card,
    .philosophy-card,
    .vision-item,
    .work-together-card,
    .beyond-work-card {
        text-align: center;
    }
    
    .professional-icon,
    .achievement-icon,
    .philosophy-icon,
    .vision-icon,
    .work-together-icon,
    .beyond-work-icon,
    .blog-topic-icon {
        margin: 0 auto;
    }
    
    .professional-card h3,
    .achievement-card h3,
    .philosophy-card h4,
    .vision-item h3,
    .work-together-card h3,
    .beyond-work-card h3,
    .beyond-work-card h4,
    .blog-topic h4 {
        text-align: center;
    }
    
    .professional-card p,
    .achievement-card p,
    .philosophy-card p,
    .vision-item p,
    .work-together-card p,
    .beyond-work-card p,
    .blog-topic p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    
    .philosophy-content {
        text-align: center;
    }
    
    .philosophy-subtitle {
        text-align: center;
    }
    
    .philosophy-content > p,
    .philosophy-note {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }
    
    .beyond-work-content {
        text-align: center;
    }
    
    .blog-topics-section {
        text-align: center;
    }
    
    .blog-topics-title {
        text-align: center;
    }
    
    .blog-topic {
        text-align: center;
    }
    
    .work-together-intro {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }
    
    .work-together-card .btn {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }
    
    .beyond-work-card .btn {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .skills-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        text-align: center;
    }
    
    .skill-icon {
        margin: 0 auto;
    }
    
    .skill-card h3 {
        text-align: center;
    }
    
    .skill-card p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    
    .skill-link {
        justify-content: center;
    }

    .professional-grid,
    .achievements-grid,
    .philosophy-grid,
    .vision-content,
    .work-together-grid {
        grid-template-columns: 1fr;
    }

    .beyond-work-featured {
        margin-bottom: 3rem;
    }
    
    .beyond-work-featured-card {
        padding: 2.5rem;
    }
    
    .beyond-work-featured-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .beyond-work-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 0 auto;
    }
    
    .beyond-work-featured-text h3 {
        font-size: 1.5rem;
    }
    
    .beyond-work-featured-subtitle {
        font-size: 1rem;
    }
    
    .beyond-work-featured-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .beyond-work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .beyond-work-card {
        padding: 2rem;
    }
    
    .beyond-work-card h3 {
        font-size: 1.5rem;
    }
    
    .beyond-work-highlight {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .beyond-work-highlight h4 {
        font-size: 1.1rem;
    }
    
    .beyond-work-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-topics-section {
        margin-top: 3rem;
        padding-top: 3rem;
    }
    
    .blog-topics-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .blog-topics-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .blog-topic-featured {
        padding: 2rem;
        margin-bottom: 2rem;
        flex-direction: column;
        text-align: center;
    }
    
    .blog-topic-featured-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
        font-size: 2rem;
        margin: 0 auto 1.5rem;
    }
    
    .blog-topic-featured-content h4 {
        font-size: 1.5rem;
    }
    
    .blog-topic-featured-content p {
        font-size: 1rem;
    }
    
    .blog-topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .work-together-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .professional-card,
    .achievement-card {
        padding: 2rem;
    }

    .professional-card h3,
    .achievement-card h3 {
        font-size: 1.3rem;
    }

    .philosophy-card {
        padding: 1.5rem;
    }

    .vision-item {
        padding: 1.5rem;
    }

    .about-buttons .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-preview-image {
        height: 200px;
    }

    .blog-preview-content {
        padding: 1.25rem;
    }

    .blog-preview-title {
        font-size: 1.2rem;
    }

    .portfolio-info {
        padding: 1.25rem;
    }

    .portfolio-info h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-tech-stack {
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }
    
    .tech-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .portfolio-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .portfolio-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .portfolio-item.expanded .portfolio-details {
        padding: 1.5rem 0 0;
        margin-top: 1.5rem;
    }
    
    .portfolio-details h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-full-desc,
    .portfolio-features,
    .portfolio-challenges,
    .portfolio-results {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-full-desc p {
        font-size: 1rem;
    }
    
    .portfolio-features li,
    .portfolio-results li {
        padding: 0.6rem 0;
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
    
    .portfolio-challenges p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-link {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .floating-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .journey-intro {
        margin-bottom: 2rem;
        padding: 0 0.75rem;
        text-align: center;
    }
    
    .journey-intro p {
        font-size: 0.95rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }
    
    .journey-grid {
        gap: 1.5rem;
    }
    
    .journey-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .journey-card-number {
        font-size: 2.5rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .journey-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1rem;
    }
    
    .journey-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .journey-card p {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    
    .hamburger,
    .navbar .hamburger,
    .hamburger#hamburger,
    #hamburger,
    nav .hamburger,
    .navbar .container .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001 !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        min-width: 25px !important;
        min-height: 20px !important;
        transition: none !important;
    }
    
    .hamburger span {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 25px !important;
        height: 3px !important;
        background: var(--dark-text) !important;
        transition: transform 0.3s ease, background 0.3s ease !important;
    }

    .container {
        padding: 0 12px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .name {
        font-size: 1.75rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        min-height: 40px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .page-header {
        min-height: 260px;
        padding-top: 80px;
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 1rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 0.25rem;
    }

    .page-subtitle {
        font-size: 0.65rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 0.25rem;
    }

    .portfolio-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-preview-section {
        padding: 4rem 0;
    }

    .service-card,
    .skill-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        text-align: center;
    }
    
    .testimonial-text {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
    
    .client-details {
        padding: 1.25rem;
    }
    
    .client-info-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .portfolio-info {
        padding: 1.25rem;
    }
    
    .testimonial-text::before {
        left: 50%;
        transform: translateX(-50%);
        top: -20px;
    }
    
    .testimonial-author {
        justify-content: center;
    }
    
    .author-info {
        text-align: center;
    }

    .service-icon,
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1.5rem;
    }
    
    .service-card {
        text-align: center;
    }
    
    .service-card h3 {
        text-align: center;
    }
    
    .service-card p,
    .service-summary,
    .service-details p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    
    .service-details {
        text-align: center;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

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

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links {
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 90px;
        right: 15px;
        font-size: 24px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }

    .contact-intro-title {
        font-size: 1.75rem;
    }
    
    .contact-intro-text {
        font-size: 1rem;
    }
    
    .contact-content {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.875rem 1rem;
    }
    
    .contact-social-section {
        padding-top: 2rem;
    }
    
    .contact-social-title {
        font-size: 1.3rem;
    }
    
    .contact-social-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links-contact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-link-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .social-link-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        font-size: 1.5rem;
    }
    
    .social-link-content h4 {
        font-size: 1rem;
    }
    
    .social-link-content p {
        font-size: 0.8rem;
    }
    
    .social-link-arrow {
        font-size: 1rem;
    }

    .blog-topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .beyond-work-featured-card {
        padding: 2rem;
    }
    
    .beyond-work-featured-text h3 {
        font-size: 1.3rem;
    }
    
    .beyond-work-icon-large {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .beyond-work-card {
        padding: 1.5rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Light white layer on sections (home page) so text is readable */
body.home-page #main-content > section:not(.hero) {
    background: rgba(255, 255, 255, 0.9);
}
body.home-page #main-content > section.hero {
    background: transparent;
}

/* Tighter vertical spacing between home page blocks */
body.home-page #portfolio,
body.home-page #about,
body.home-page #services,
body.home-page .testimonials-section,
body.home-page #faq,
body.home-page #contact {
    padding: 2.5rem 0;
}

/* ===== Page Header ===== */
.page-header {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px;
    margin-bottom: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-header .gradient-overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    opacity: 1;
    z-index: 1;
}

.breadcrumb { font-size: 0.9rem; }
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .page-header .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header .container {
        padding: 0 1rem;
    }
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease-out;
}

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

.page-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.98);
    text-align: center;
    line-height: 1.7;
    font-weight: 400;
    max-width: 750px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.01em;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.blog-page-subtitles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-subtitle-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-subtitle-tagline i {
    font-size: 0.9rem;
}

/* ===== Active Nav Link ===== */
.nav-link.active {
    color: var(--primary-light);
}

.nav-link.active::after {
    width: 100%;
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

.stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stats-section .stat-item {
    background: var(--light-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
}

.stats-section .stat-number {
    color: var(--dark-text);
}

.stats-section .stat-label {
    color: var(--gray-text);
}

/* ===== Skills Section ===== */
.skills-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3 i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--gradient-1);
    color: var(--light-text);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-1);
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--light-bg);
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--light-text);
    transform: translateY(-2px);
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.blog-card:hover .blog-image::after {
    opacity: 1;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

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

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--light-text);
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-placeholder {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.blog-card:hover .blog-category {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-meta span {
    color: var(--primary-color);
}

.blog-meta i {
    font-size: 0.875rem;
    opacity: 0.7;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
    transform: translateX(4px);
}

.blog-excerpt {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-excerpt {
    color: #374151;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    position: relative;
    width: fit-content;
    margin-top: auto;
}

.blog-read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-read-more:hover {
    gap: 0.75rem;
    color: var(--secondary-color);
    transform: translateX(4px);
}

.blog-read-more:hover::after {
    width: 100%;
}

.blog-read-more i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.blog-read-more:hover i {
    transform: translateX(6px);
}

/* ===== Blog Cards - Mobile Responsive ===== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card {
        border-radius: 20px;
    }

    .blog-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .blog-image {
        aspect-ratio: 16/9;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 1.35rem;
        line-height: 1.35;
    }

    .blog-excerpt {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .blog-meta {
        font-size: 0.8rem;
        gap: 1rem;
    }

    .blog-category {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        gap: 1.5rem;
    }

    .blog-card {
        border-radius: 16px;
    }

    .blog-content {
        padding: 1.25rem;
    }

    .blog-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .blog-excerpt {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .blog-meta {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .blog-read-more {
        font-size: 0.875rem;
    }
}

/* ===== Blog Pagination ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--gradient-1);
    color: var(--light-text);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
}

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

/* Blog Article Actions - Mobile Fixes */
@media (max-width: 768px) {
    .article-actions > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
    
    .article-share {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        width: 100%;
        display: flex !important;
        align-items: center !important;
    }
    
    .article-share span {
        width: 100%;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .share-btn {
        flex-shrink: 0 !important;
        min-width: 40px !important;
        min-height: 40px !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
    }
    
    .article-reactions {
        width: 100%;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .article-share {
        gap: 0.4rem !important;
    }
    
    .share-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
}

/* Back to Blog Button */
.back-to-blog-btn {
    transition: all 0.3s ease;
}

/* Article Page Responsive Styles */
@media (max-width: 768px) {
    .blog-full-article {
        padding: 1.5rem !important;
        margin: 2rem auto !important;
    }
    
    .blog-full-article .article-header h1 {
        font-size: 1.75rem !important;
    }
    
    .blog-full-article .article-content {
        font-size: 1rem !important;
    }
    
    .blog-full-article .article-content h2 {
        font-size: 1.5rem !important;
        margin-top: 2rem !important;
    }
    
    .blog-full-article img {
        max-height: 300px !important;
        margin: 1.5rem 0 !important;
    }
    
    .blog-full-article .article-content p {
        text-align: left !important;
        margin-bottom: 1.5rem !important;
    }
}

.back-to-blog-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.back-to-blog-btn:active {
    transform: translateY(0) scale(1);
}

/* ===== Post/Article Engagement Bar (Like, Share, Comment) ===== */
.post-engagement-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.engagement-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--dark-text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.engagement-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

.engagement-btn i {
    font-size: 1.1rem;
}

.engagement-btn.like-btn.liked {
    color: #e11d48;
}

.engagement-btn.like-btn.liked i {
    font-weight: 900;
}


.engagement-btn .like-count,
.engagement-btn .dislike-count {
    font-weight: 600;
    min-width: 1.25rem;
}

.engagement-btn.dislike-btn.disliked {
    color: #64748b;
}

.engagement-btn.dislike-btn.disliked i {
    font-weight: 900;
}

/* ===== Comments Section ===== */
.post-comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comments-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
}

.comments-heading .comments-count {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment-form input,
.comment-form textarea {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form button {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    color: var(--light-text);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.comment-item .comment-author {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.35rem;
}

.comment-item .comment-author span {
    font-weight: 400;
    color: var(--gray-text);
    font-size: 0.85rem;
}

.comment-item .comment-text {
    color: var(--gray-text);
    line-height: 1.6;
    margin: 0;
}

