/*
Theme Name: Dipto Dhar
Theme URI: http://diptodhar.com/
Author: Dipto Dhar
Author URI: http://diptodhar.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dipto-dhar
Description: A custom theme for my portfolio
Version: 1.0
*/

/* ============================================================================
   TABLE OF CONTENTS
   ============================================================================
   1. RESET & BASE STYLES
   2. FONT DECLARATIONS
   3. CSS CUSTOM PROPERTIES (VARIABLES)
   4. GLOBAL STYLES
   5. LAYOUT COMPONENTS
   6. TYPOGRAPHY
   7. BUTTON COMPONENTS
   8. ICON COMPONENTS
   9. NAVIGATION MENU
   10. HERO SECTION
   11. PORTFOLIO SECTION
   12. SERVICE SECTION
   13. TESTIMONIAL SECTION
   14. RESPONSIVE DESIGN
   ============================================================================ */


/* ============================================================================
   5. LAYOUT COMPONENTS
   ============================================================================ */

/* Main Container */


/* Header Layout */
.d-header{
    position: fixed;
    width: 100%;
    z-index: 9;
    transition: transform 0.3s ease-in-out;
}


.header-hidden {
  transform: translateY(-100%);
}

.header-visible {
  transform: translateY(0);
  background: var(--white);
}

header .d_container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px;
}

.logo-container {
    z-index: 10;
    position: relative;
}

.theme-mode{
    position: relative;
    width: 40px;
    cursor: pointer;
        z-index: 10;
}

.theme-mode .d-icon{

    position: absolute;
}
.theme-mode .d-mode-icon-light{
    top: 0;
    left: 0;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.theme-mode .d-mode-icon-dark{
    top: 0;
    left: 0;
    z-index: 2;
    transition: all 0.3s ease-in-out;
}
/* ============================================================================
   7. BUTTON COMPONENTS
   ============================================================================ */

/* Primary Button */
.d-primary-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 100px;
    background: var(--primary-color);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    width: fit-content;
    text-decoration: none;
    transition: background 0.5s ease;
    overflow: hidden;
}

/* Button Icon */
.d-btn-icon {
    border-radius: 50px;
    background: var(--white);
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 1;
    max-width: 45px;
    position: relative;
    flex-shrink: 0;
}

/* Button Text */
.d-primary-btn .d-btn-text {
    color: var(--white);
    font-style: normal;
    font-weight: 400;
    transform: translateX(0%);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.d-primary-btn .d-btn-icon svg path {
    fill: var(--primary-color);
}
/* Button Hover States */
.d-primary-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.d-primary-btn:hover .d-btn-icon {
    background: var(--primary-color);
    transform: translateX(var(--icon-travel-distance));
    color: var(--white);
}

.d-primary-btn:hover .d-btn-icon svg path {
    fill: var(--white);
}

.d-primary-btn:hover .d-btn-text {
    transform: translateX(var(--text-travel-distance));
}

/* Button Group */
.d-btn-group {
    display: flex;
    width: fit-content;
    gap: 10px;
}

/* Menu Button */
.d-menu-button {
    max-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 100px;
    background: var(--primary-color);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    width: fit-content;
    text-decoration: none;
    transition: background 0.5s ease;
    overflow: hidden;
    z-index: 10;
}

/* Menu Button Active State */
.d-menu-button-active {
    background: var(--secondary-color);
    color: var(--white);
}

.d-menu-button-active .d-btn-icon {
    background: var(--primary-color);
    transform: translateX(var(--icon-travel-distance));
    color: var(--white) !important;
}

.d-menu-button-active .d-btn-icon svg path {
    fill: var(--white);
}

.d-menu-button-active .d-btn-text {
    transform: translateX(var(--text-travel-distance));
}

/* Specialized Button Variants */
.d-portfolio-btn {
    background: var(--secondary-color);
}

.d-portfolio-btn .d-btn-icon {
    background: var(--primary-color);
    color: var(--white);
}

.d-portfolio-btn .d-btn-icon svg path {
    fill: var(--white);
}

.d-service-btn {
    background: var(--primary-color);
    z-index: 2;
    position: relative;
}

.d-service-btn .d-btn-icon {
    background: var(--white);
    color: var(--white);
}

.d-service-btn .d-btn-icon svg path {
    fill: var(--primary-color);
}

/* ============================================================================
   8. ICON COMPONENTS
   ============================================================================ */

/* Base Icon Styles */
.d-icon {
    border-radius: 50px;
    background: var(--primary-color);
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 1;
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
}

.d-icon svg {
    width: 20px;
    height: 20px;
}

/* Menu List Icons */
.d-icon.d-menu-list-icon {
    width: 42px;
    height: 42px;
    padding: 6px 8px;
    aspect-ratio: 1/1;
    background: var(--secondary-color);
    color: var(--white);
}

.d-icon.d-menu-list-icon:hover {
    background: var(--white);
    transform: translateY(-15px);
    transition: transform 0.3s ease-in-out;
}

/* Mode Icon States */
.d-mode-icon:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.d-mode-icon-active {
    background: var(--secondary-color);
    color: var(--white);
    z-index: 10;
}

/* Icon List Container */
.d-icon-list {
    display: flex;
    gap: 20px;
    padding: 0;
    flex-wrap: wrap;
}

/* ============================================================================
   9. NAVIGATION MENU
   ============================================================================ */

/* Slide Menu Container - Default State (Closed) */
.d-slide-menu {
    position: absolute;
    top: clamp(15px, 4vw, 30px);
    right: clamp(15px, 4vw, 30px);
    display: flex;
    gap: clamp(30px, 6vw, 60px);
    width: 0;
    height: 0;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: clamp(20px, 4vw, 30px);
    background: var(--dark-global);
    z-index: 9;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
    
    transition:
        width 0.6s var(--transition-smooth),
        height 0.6s var(--transition-smooth) 0.1s,
        padding 0.5s var(--transition-smooth) 0.2s,
        top 0.6s var(--transition-smooth),
        right 0.6s var(--transition-smooth),
        opacity 0.4s ease,
        transform 0.5s ease;
}

/* Slide Menu Active State (Open) */
.d-slide-menu-active {
    width: clamp(300px, 85vw, 389px);
    height: clamp(500px, 80vh, 700px);
    padding: clamp(20px, 5vw, 40px);
    top: clamp(10px, 3vw, 20px);
    right: clamp(10px, 3vw, 20px);
    opacity: 1;
    transform: scale(1);
    
    transition:
        width 0.5s var(--transition-ease),
        height 0.5s var(--transition-ease) 0.05s,
        padding 0.4s var(--transition-ease) 0.15s,
        top 0.5s var(--transition-ease),
        right 0.5s var(--transition-ease),
        opacity 0.3s var(--transition-ease) 0.1s,
        transform 0.5s var(--transition-ease) 0.1s;
}

/* Menu List */
.d-menu-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.4s var(--transition-ease) 0.1s,
        transform 0.5s var(--transition-ease) 0.1s;
}

.d-slide-menu-active .d-menu-list {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.5s var(--transition-ease) 0.3s,
        transform 0.6s var(--transition-ease) 0.3s;
}
.d-menu-list ul{
    display: flex;
    gap: 10px;
    flex-direction: column;
}
/* Menu Items */
.d-slide-menu .d-menu-list li {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-family);
    opacity: 0;
    transform: translateX(-30px);
    gap: 12px;
    transition:
        opacity 0.4s var(--transition-ease),
        transform 0.5s var(--transition-ease);
}

.d-slide-menu-active .d-menu-list li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animation for Menu Items */
.d-slide-menu-active .d-menu-list li:nth-child(1) { transition-delay: 0.4s; }
.d-slide-menu-active .d-menu-list li:nth-child(2) { transition-delay: 0.5s; }
.d-slide-menu-active .d-menu-list li:nth-child(3) { transition-delay: 0.6s; }
.d-slide-menu-active .d-menu-list li:nth-child(4) { transition-delay: 0.7s; }
.d-slide-menu-active .d-menu-list li:nth-child(5) { transition-delay: 0.8s; }
.d-slide-menu-active .d-menu-list li:nth-child(6) { transition-delay: 0.9s; }
.d-slide-menu-active .d-menu-list li:nth-child(7) { transition-delay: 1.0s; }
.d-slide-menu-active .d-menu-list li:nth-child(8) { transition-delay: 1.1s; }
.d-slide-menu-active .d-menu-list li:nth-child(9) { transition-delay: 1.2s; }
.d-slide-menu-active .d-menu-list li:nth-child(10) { transition-delay: 1.3s; }

/* Menu Item Links */
.d-slide-menu .d-menu-list li a {
    color: var(--secondary-global);
    text-decoration: none;
    font-size: 0px;
    line-height: 0;
    font-style: normal;
    font-weight: 400;
    transition:
        font-size 0.6s var(--transition-ease) 0.2s,
        color 0.3s ease;
}

.d-slide-menu-active .d-menu-list li a {
    color: var(--secondary-global);
    text-decoration: none;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 100%;
    font-style: normal;
    font-weight: 400;
    transition:
        font-size 0.5s var(--transition-ease) 0.1s,
        color 0.3s ease;
}

.d-slide-menu .d-menu-list li a:hover {
    color: var(--white-global);
    text-decoration: none;
    transform: translateX(5px);
    transition:
        color 0.2s ease,
        transform 0.3s var(--transition-ease);
}

/* Menu Arrow Animation */
.d-slide-menu .d-menu-list li .d-menu-arrow {
    width: 0px;
    opacity: 0;
    transition:
        width 0.4s var(--transition-ease),
        opacity 0.3s ease;
    padding: 0;
    overflow: hidden;
    font-size: clamp(25px, 4vw, 32px);
}

.d-slide-menu .d-menu-list li:hover .d-menu-arrow {
    width: clamp(25px, 5vw, 50px);
    opacity: 1;
    margin-right: 10px;
    transition:
        width 0.4s var(--transition-ease),
        opacity 0.3s ease 0.1s,
        margin-right 0.4s var(--transition-ease);
}
/* ============================================================================
   ENHANCED HERO SECTION ANIMATIONS
   ============================================================================ */

/* Base hero container enhancements */
.d-hero-container {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 100dvh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    background-image: url(../images/d.svg);
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Enhanced hero content */
.d-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 65%;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.d-hero-content .content {
    display: flex;
    gap: 35px;
    flex-direction: column;
    align-items: flex-start;
}

/* Title animation enhancements */
.d-hero-title {
    max-width: fit-content;
    position: relative;
    will-change: transform, opacity;
}

.d-hero-title span.gray-text {
    display: inline-block;
    position: relative;
}


/* Paragraph enhancement */
.d-hero-paragraph {
    max-width: 714px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
}

/* Enhanced portfolio section */
.d-hero-portfoliio {
    width: 35%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.d-hero-portfoliio .d-portfolio-item-wrapper {
    width: 100%;
    display: flex;
    position: relative;
}

.d-hero-portfoliio .d-portfolio-item-wrapper:nth-child(1) {
    width: 100%;
    justify-content: flex-end;
}

.d-hero-portfoliio .d-portfolio-item-wrapper:nth-child(2) {
    width: 100%;
    justify-content: flex-start;
}

/* Enhanced portfolio items */
.hero-portfolio-item {
    display: flex;
    width: 225.405px;
    flex-direction: column;
    gap: 7px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-portfolio-item:hover::before {
    opacity: 1;
}

.hero-portfolio-item img {
    width: 100%;
    transition: all 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
    border-radius: 8px;
}

.hero-portfolio-item:hover img {
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    transform: scale(1.02);
}

.hero-portfolio-item .item-sh-desc {
    padding: 15px;
    position: relative;
    z-index: 2;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-portfolio-item:hover .item-sh-desc {
    opacity: 1;
}

/* Floating animation for portfolio items */
.hero-portfolio-item.float-animation {
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-portfolio-item:nth-child(even).float-animation {
    animation-delay: -3s;
    animation-direction: reverse;
}

@keyframes heroFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-10px) rotate(1deg) scale(1.02);
    }
    50% { 
        transform: translateY(-20px) rotate(0deg) scale(1);
    }
    75% { 
        transform: translateY(-10px) rotate(-1deg) scale(1.02);
    }
}


/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}



/* Particle effect background */
/* .d-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(69, 183, 209, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    animation: particleFloat 20s ease-in-out infinite;
} */

/* @keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
} */

/* Glass morphism effect */
.hero-portfolio-item, .d-primary-btn {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Scroll animations */
.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8) rotateY(20deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.animate-in {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

/* ============================================================================
   11. PORTFOLIO SECTION
   ============================================================================ */

.d-portfolio-section {
    height: 100dvh;
}

.d-portfolio-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 50px 30px;
    background-image: url(../images/p.svg);
    
}

.portfolio-scroll-wrapper {
    overflow-x: hidden;
}

.d-portfolio-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
}

.portfolio-item {
    max-width: 505px;
    height: 477px;
    flex: 0 0 auto;
    flex-shrink: 0;
    width: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 30px;
    cursor: pointer;
    transition: .6s;
}

.portfolio-item.item-even{
    border-radius: 30px 200px 30px 30px;
}
.portfolio-item.item-odd{
       border-radius: 30px 30px 30px 200px;
}

.portfolio-item:hover{
    border-radius: 30px 30px 30px 30px;
}
.portfolio-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-details {
    width: 100%;
    height: 100%;
    padding: 30px;
    top: 0;
    right: 0;
    background: var(--primary-color);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.portfolio-details .portfolio-title {
    color: var(--white);
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.portfolio-details .portfolio-description {
    color: var(--white);
}

.portfolio-content {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.portfolio-details-btn {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.portfolio-item:hover .portfolio-details {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* ===========================================
   SERVICE SECTION STYLING
   =========================================== */

/* Main Section Container */
.d-service-section {
    height: 100dvh;
}

.d-service-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 50px 30px;
    background-image: url(../images/i.svg);
}

/* Scroll Wrapper */
.d-service-scroll-wrapper {
    overflow-y: hidden;
    width: 100%;
}
.d-service-swiper {
  padding-right: 50px; /* gives space to show next item slightly */
  overflow: visible;
}

.swiper-slide {
  transition: transform 0.3s ease;
}

.d-service-item {
  height: 100%;
}

/* Service Items Layout */
.d-service-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
}

/* ===========================================
   SERVICE ITEM BASE STYLES
   =========================================== */

.d-service-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex-shrink: 0;
    width: 505px;
    height: 477px;
    padding: 30px;
    border-radius: 30px;
    background: var(--white);
    overflow: hidden;
    position: relative;
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

/* Service Content */
.d-service-content {
    display: flex;
    gap: 20px;
    flex-direction: column;
    z-index: 2;
}

/* Service Title */
.service-title {
    color: var(--primary-color);
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    transition: 0.7s ease-in-out;
}

/* Service Description */
.d-service-details .d-service-description {
    transition: 0.7s ease-in-out;
}

/* Service Details (Hidden by default) */
.d-service-item .service-details {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Service Button Container */
.service-details-btn {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

/* Service Button */
.d-service-btn {
    background: var(--primary-color);
    z-index: 2;
    position: relative;
}

.d-service-btn .d-btn-icon {
    background: var(--white);
    color: var(--white);
}

.d-service-btn .d-btn-icon svg path {
    fill: var(--primary-color);
}

/* ===========================================
   BACKGROUND CIRCLE ELEMENTS
   =========================================== */

.d-service-bg-circle,
.d-service-bg-circle-2 {
    width: 245px;
    height: 245px;
    position: absolute;
    border-radius: 100%;
    background: var(--primary-color);
    z-index: 1;
    left: -18%;
    bottom: -8%;
    transition: 0.5s ease-in-out;
}

.d-service-bg-circle-2 {
    z-index: 1;
}

/* ===========================================
   LIGHT THEME HOVER EFFECTS
   =========================================== */

   
.d-service-item:hover .d-service-bg-circle {
    width: 145%;
    height: 145%;
    left: -20%;
    bottom: -20%;
}

.d-service-item:hover .service-title {
    color: var(--white);
}

.d-service-item:hover .d-service-description {
    color: var(--white);
}

.d-service-item:hover .d-service-bg-circle-2 {
    z-index: 3;
    background: var(--white);
}

.d-service-item:hover .service-details {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.d-service-item:hover .d-service-btn {
    background: var(--white);
}

.d-service-item:hover .d-service-btn .d-btn-text {
    color: var(--primary-color);
}

.d-service-item:hover .d-service-btn .d-btn-icon {
    background: var(--primary-color);
}

.d-service-item:hover .d-service-btn .d-btn-icon svg path {
    fill: var(--white);
}

/* ===========================================
   DARK THEME VARIANT
   =========================================== */

/* Dark Theme Base Styles */
.d-service-item.dark {
    background: var(--primary-color);
}

.d-service-item.dark .service-title {
    color: var(--white);
}

.d-service-item.dark .d-service-description {
    color: var(--white);
}

.d-service-item.dark .d-service-btn {
    background: var(--white);
}

.d-service-item.dark .d-service-btn .d-btn-text {
    color: var(--primary-color);
}

.d-service-item.dark .d-service-btn .d-btn-icon {
    background: var(--primary-color);
}

.d-service-item.dark .d-service-btn .d-btn-icon svg path {
    fill: var(--white);
}

/* Dark Theme Background Circles */
.d-service-item.dark .d-service-bg-circle,
.d-service-item.dark .d-service-bg-circle-2 {
    background: var(--white);
}

/* Dark Theme Hover Effects */

.d-service-item.dark:hover{
    background: var(--white);
}
.d-service-item.dark:hover .d-service-bg-circle {
    width: 145%;
    height: 145%;
    left: -20%;
    bottom: -20%;
    background: var(--white);
}

.d-service-item.dark:hover .service-title {
    color: var(--primary-color);
}

.d-service-item.dark:hover .d-service-description {
    color: var(--primary-color);
}

.d-service-item.dark:hover .d-service-bg-circle-2 {
    z-index: 3;
    background: var(--primary-color);
}

.d-service-item.dark:hover .d-service-btn {
    background: var(--primary-color);
}

.d-service-item.dark:hover .d-service-btn .d-btn-text {
    color: var(--white);
}

.d-service-item.dark:hover .d-service-btn .d-btn-icon {
    background: var(--white);
}

.d-service-item.dark:hover .d-service-btn .d-btn-icon svg path {
    fill: var(--primary-color);
}

/* ===========================================
   GRAY THEME VARIANT
   =========================================== */

/* Gray Theme Base Styles */
.d-service-item.gray {
    background: var(--secondary-color);
}

.d-service-item.gray .service-title {
    color: var(--white);
}

.d-service-item.gray .d-service-description {
    color: var(--white);
}

.d-service-item.gray .d-service-btn {
    background: var(--white);
}

.d-service-item.gray .d-service-btn .d-btn-text {
    color: var(--secondary-color);
}

.d-service-item.gray .d-service-btn .d-btn-icon {
    background: var(--secondary-color);
}

.d-service-item.gray .d-service-btn .d-btn-icon svg path {
    fill: var(--white);
}

/* Gray Theme Background Circles */
.d-service-item.gray .d-service-bg-circle,
.d-service-item.gray .d-service-bg-circle-2 {
    background: var(--white);
}

/* Gray Theme Hover Effects */
.d-service-item.gray:hover .d-service-bg-circle {
    width: 145%;
    height: 145%;
    left: -20%;
    bottom: -20%;
    background: var(--white);
}

.d-service-item.gray:hover .service-title {
    color: var(--secondary-color);
}

.d-service-item.gray:hover .d-service-description {
    color: var(--secondary-color);
}

.d-service-item.gray:hover .d-service-bg-circle-2 {
    z-index: 3;
    background: var(--secondary-color);
}

.d-service-item.gray:hover .d-service-btn {
    background: var(--secondary-color);
}

.d-service-item.gray:hover .d-service-btn .d-btn-text {
    color: var(--white);
}

.d-service-item.gray:hover .d-service-btn .d-btn-icon {
    background: var(--white);
}

.d-service-item.gray:hover .d-service-btn .d-btn-icon svg path {
    fill: var(--secondary-color);
}

/* ===========================================
   TESTIMONIAL SECTION STYLING
   =========================================== */

/* Main Testimonial Section */
.d-testimonial-section {
    background: var(--background-color);
    display: flex;
    justify-content: space-between;
}

.d-testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 150px;
    width: 100%;
    min-height: 100dvh;
    padding: 80px 30px;
}



.d-testimonial-heading{
    line-height: 100%;
}
/* ===========================================
   SWIPER CONFIGURATION
   =========================================== */

.mySwiper {
    width: 100%;
}

.swiper-pagination {
    position: absolute;
    bottom: 20px !important;
    right: 20px !important;
    width: fit-content !important;
    left: unset !important;
}

.swiper-pagination-bullet {
    width: 21px !important;
    height: 21px !important;
    border-radius: 100px;
    flex-shrink: 0;
    background: var(--secondary-color) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* ===========================================
   TESTIMONIAL ITEMS
   =========================================== */

/* Testimonials Wrapper */
.d-testimonial-wrapper {
    width: 100% !important;
}

.d-testimonial-item {
    width: 100%;
    position: relative;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: var(--white);
    border-radius: 24px;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 320px;
    transition: .6s;
}

/* ===========================================
   TESTIMONIAL BACKGROUND CIRCLES
   =========================================== */

.d-testimonial-bg-circle {
    position: absolute;
    width: 228px;
    height: 228px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -60px;
    right: -40px;
    z-index: 1;
 transition: 1s;
}

.d-testimonial-bg-circle-2 {
    position: absolute;
    width: 228px;
    height: 228px;
    background: var(--primary-color);
    border-radius: 50%;
    bottom: -60px;
    left: -40px;
    z-index: 1;
    transition: 1s;
}

.d-testimonial-item:hover .d-testimonial-bg-circle,
.d-testimonial-item:hover .d-testimonial-bg-circle-2 {
      border-radius: 0;
    width:1000px;
    height: 500px;
    z-index: 0;

    
  
}
.d-testimonial-item:hover .testimonial-title {
    color: var(--white);
    
}
.d-testimonial-item:hover .testimonial-role {
    color: var(--white);
  
}


.d-testimonial-item:hover .d-testimonial-content {
    z-index: 5;
}
.d-testimonial-item:hover .d-testimonial-quote {

    color: var(--white);

}

.d-testimonial-item:hover .d-star {

    fill: var(--white);

}

/* ===========================================
   TESTIMONIAL CONTENT
   =========================================== */

.d-testimonial-content {
    max-width: 911px;
    height: 122px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;

}

.d-testimonial-quote {
    line-height: 1.7;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 20px;
     transition: .6s;
}

.d-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
     transition: .6s;
}

.testimonial-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 500;
    line-height: 26px;
     transition: .6s ease-in-out;
}

.testimonial-role {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
     transition: .6s ease-in-out;
}

.d-testimonial-rating {
    display: flex;
    gap: 4px;
    margin-top: 8px;
     transition: .6s ease-in-out;
}

.d-star {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
     transition: .6s ease-in-out;
}





.d-footer {
            background-color: var(--background-color);
            position: relative;
            overflow: hidden;
           
        }
        
.d-footer .d-container{
     display: flex;
    gap: 102px;
    flex-direction: column;
}
.d-footer-cta{
    display: flex;
    flex-direction: column;
    gap: 0px;
 
}

        .d-footer-container {
            max-width: 100%;
            margin: 0 auto;
            padding: 80px 30px 30px;
            position: relative;
        }

        .d-footer-content {
            display: flex;
           justify-content: space-between;
           

        }

        /* Footer Title */
        .d-footer-title {
            color: var(--primary-color);
            font-family: var(--font-family);
          font-size: clamp(48px, 8vw, 120px);
            max-width: 1250px;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 30px;
        }

        .d-footer-title .gray-text {
            color: var(--secondary-color);
        }

        /* Get Service Button */
        .d-get-service-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 4px 10px 4px 4px;
            border-radius: 100px;
            background: var(--primary-color);
            color: var(--white);
            font-family: var(--font-family);
            font-size: 16px;
            text-decoration: none;
            transition: all 0.5s ease;
            overflow: hidden;
            position: relative;
        }

        .d-get-service-btn .d-btn-icon {
            border-radius: 50px;
            background: var(--white);
            display: flex;
            padding: 10px;
            align-items: center;
            justify-content: center;
            transition: all 0.5s ease;
            position: relative;
            flex-shrink: 0;
            width: 42px;
            height: 42px;
        }

        .d-get-service-btn .d-btn-text {
            color: var(--white);
            font-weight: 400;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .d-get-service-btn:hover {
            background: var(--secondary-color);
        }

        .d-get-service-btn:hover .d-btn-icon {
            background: var(--primary-color);
            transform: translateX(var(--icon-travel-distance));
        }

        .d-get-service-btn:hover .d-btn-text {
            transform: translateX(var(--text-travel-distance));
        }
.d-footer-about{
    max-width: 422px;
}
        /* Contact Info */

        .d-contact-info {

        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 300px;
        }
        .d-contact-info p {
           font-weight: 500;
        }



        .d-contact-info a {
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .d-contact-info a:hover {
            color: var(--primary-color);
        }

        /* Email Form */
      

        .d-email-form .d-form-content {
           display: flex;
           flex-direction: column;
           gap: 10px;
        }

        .d-email-form{
            display: flex;
            flex-direction: column;
            gap: 20px;
            max-width: 500px;
        }

        .d-form-group {
            display: flex;
            gap:0;
            align-items: center;
        }

        .d-email-input {
            flex: 1;
            padding: 12px 20px;
            border: 2px solid var(--primary-color);
            border-radius: 10px 0 0 10px;
            background: var(--white);
            color: var(--text-color);
            font-family: var(--font-family);
            font-size: 16px;
            outline: none;
            transition: all 0.3s ease;
        }

        .d-email-input:focus {
            border-color: var(--primary-color);
        }

        .d-email-input::placeholder {
            color: var(--secondary-color);
        }

        .d-submit-btn {
            padding: 12px 24px;
            border: 2px solid var(--primary-color);

            border-radius: 0px 10px 10px 0px;
            background: var(--primary-color);
            color: var(--white);
            font-family: var(--font-family);
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            margin-left: -5px;
        }

        .d-submit-btn:hover {
            background: var(--secondary-color);
             border: 2px solid var(--secondary-color);

          
        }

        /* Footer Bottom */
        .d-footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 10px;

        }

        .d-footer-copyright {
            color: var(--primary-color);
     
        }

        /* Social Icons */
        .d-social-icons {
            display: flex;
            gap: 15px;
        }

        .d-social-icon {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--secondary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s ease;
            color: var(--white);
        }

        .d-social-icon:hover {
            background: var(--primary-color);
            transform: translateY(-5px);
        }

        .d-social-icon svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }
/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s var(--transition-smooth);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s var(--transition-ease);
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

/* Cursor States */
.cursor.hover {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    mix-blend-mode: normal;
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    border-color: var(--primary-color);
    opacity: 0.3;
}

.cursor.click {
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border: none;
    mix-blend-mode: difference;
}

.cursor-follower.click {
    width: 32px;
    height: 32px;
    border-color: var(--primary-color);
    opacity: 0.8;
}/* Smooth scrolling styles */
        html.lenis {
            height: auto;
        }

        .lenis.lenis-smooth {
            scroll-behavior: auto;
        }

        .lenis.lenis-smooth [data-lenis-prevent] {
            overscroll-behavior: contain;
        }

        .lenis.lenis-stopped {
            overflow: hidden;
        }

        .lenis.lenis-scrolling iframe {
            pointer-events: none;
        }

        /* Animation classes */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
        }

        .fade-in.active {
            opacity: 1;
            transform: translateY(0);
        }

        .scale-in {
            opacity: 0;
            transform: scale(0.95);
            transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
        }

        .scale-in.active {
            opacity: 1;
            transform: scale(1);
        }

        .slide-in-left {
            opacity: 0;
            transform: translateX(-50px);
            transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
        }

        .slide-in-left.active {
            opacity: 1;
            transform: translateX(0);
        }

        .slide-in-right {
            opacity: 0;
            transform: translateX(10px);
            transition: opacity 0.7s var(--transition-smooth), transform 1s var(--transition-smooth);
        }

        .slide-in-right.active {
            opacity: 1;
            transform: translateX(0);
        }

        /* Header */
        .d-header {
            position: fixed;
            width: 100%;
            z-index: 9;
            transition: transform 0.3s ease-in-out, background 0.3s ease;
        }

        .header-hidden {
            transform: translateY(-100%);
        }

        .header-visible {
            transform: translateY(0);
            background: var(--white);
          
        }






/* ============================================================================
   PORTFOLIO Page STYLES
   ============================================================================ */

.d-portfolio-main .d-portfolio-section {
    height: auto;
}

.d-portfolio-main .d-portfolio-container {
    padding: 120px 30px;
    min-height: 100vh;
    height: auto !important;
    gap: 100px;
}

.d-portfolio-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: auto;
    gap: 50px;
    justify-content: space-between;
}

.d-portfolio-main .portfolio-item {
    width: 100%;
}

.d-page-contact .d-contact-title {
    text-align: center;
    line-height: 100%;
}

.d-page-contact .content {
    max-width: 1142px;
    margin: auto;
}

/* ============================================================================
   CONTACT Page STYLES
   ============================================================================ */

.contact-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.contact-container {
    width: 100%;
    max-width: 1600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    padding: 0 50px;
}

.contact-left {
    flex: 1;
    flex-direction: column;
    display: flex;
    align-items: start;
    gap: 50px;
    justify-content: center;
}

.contact-letter {
    font-size: clamp(400px, 35vw, 600px);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 0.8;
    font-family: var(--font-family);
    letter-spacing: -0.02em;
}

.contact-right {
    flex: 1;
    max-width: 500px;
}

.contact-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-family: var(--font-family);
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 40px;
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-family);
    background-color: transparent;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input::placeholder {
    color: var(--secondary-color);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ============================================================================
   About HERO SECTION STYLES
   ============================================================================ */

.hero-section {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 110vh;
    gap: 60px;
}

.hero-image-container {
    position: relative;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
    height: 100%;
}

.hero-image {
    max-width: 650px;
    height: auto;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-text-container {
    flex: 1;
    position: relative;
}

/* ============================================================================
   JOURNEY & EXPERTISE SECTION STYLES
   ============================================================================ */

.journey-expertise-section {
    position: relative;
    padding: 80px 0;
    min-height: 100vh;
    overflow: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.journey-section {
    display: flex;
    max-width: 850px;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    flex-shrink: 0;
}

.expertise-section {
    display: flex;
    max-width: 850px;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    flex-shrink: 0;
}

.section-heading {
    color: var(--primary-color);
    font-family: "Neue Montreal";
    font-size: 120px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
}

.section-heading .gray-part {
    color: var(--secondary-color);
}

.section-heading .black-part {
    color: var(--primary-color);
}

.expertise-list {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-item {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    padding: 12px 0;
    border-bottom: 1px solid var(--secondary-color);
    position: relative;
}

.expertise-item:last-child {
    border-bottom: none;
}

.d-bg {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(20rem, 55vw, 35rem);
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-family);
    z-index: 1;
    line-height: 0.8;
    opacity: 0.8;
    pointer-events: none;
}



.d-service-navigation{
    display: flex;
    gap: 10px;
    justify-self: end;
    margin-bottom: 30px;

}
.d-service-nav-btn{
    cursor: pointer;
}
.d-service-nav-btn:hover{
    background: var(--secondary-color);

}
.d-service-nav-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease-in-out;
}
.d-service-nav-btn svg path{
    fill: var(--white);

}

.d-service-container .swiper-slide {
  width: auto!important;
  margin-right: 30px;
  flex-shrink: 0;
    transition: transform 0.6s ease;
}

.swiper-wrapper {
  padding-right: 60px; /* Prevent clipping last preview */
}
