/* ============================================================================
   GLOBAL STYLES
   ============================================================================
   1. RESET & BASE STYLES
   ============================================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Text Selection Styles */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================================================
   2. FONT DECLARATIONS
   ============================================================================ */

@font-face {
    font-family: "Neue Montreal";
    src: url(../fonts/NeueMontreal-Regular.ttf) format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Neue Montreal";
    src: url(../fonts/NeueMontreal-Medium.ttf) format("truetype");
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Neue Montreal";
    src: url(../fonts/NeueMontreal-Bold.ttf) format("truetype");
    font-style: normal;
    font-weight: 700;
}

/* ============================================================================
   3. CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================================================ */

:root {
    /* Colors */
    --primary-color: #111111;
    --secondary-color: #b2b2b4;
    --background-color: #F7F7F7;
    --text-color: #111111;
    --white: #FFFFFF;

    --white-global: #FFFFFF;
    --dark-global: #111111;    
    --secondary-global: #b2b2b4;
    /* Typography */
    --font-family: "Neue Montreal", sans-serif;
    --font-size-p-mb: 14px;
    
    /* Animation */
    --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Button Animation Distances */
    --icon-travel-distance: 240%;
    --text-travel-distance: -50%;
}

/* Reversed colors theme */
.reversed-theme {
    --primary-color: #F7F7F7;
    --secondary-color: #b2b2b4;
    --background-color: #111111;
    --text-color: #FFFFFF;
    --white: #000000;

}

.reversed-theme .theme-mode .d-mode-icon-light{
    top: 0;
    left: 0;
    z-index: 3;
    transition: all 0.3s ease-in-out;
}

.reversed-theme .d-menu-button .d-btn-icon svg path {
    fill: var(--primary-color);

}

.reversed-theme .d-menu-button-active .d-btn-icon svg path {
    fill: var(--white);

}


.d-mode-icon-active{
    background: var(--secondary-color);
}
.logo-link{
    position: relative;
    display: flex;
    max-width: 300px;
    width: 150px;
    height: 35px;
}
.logo-img{
    position: absolute;
    top: 0;
    left: 0;
    transition: .5s ease-in-out;
   
}

.logo-dark{
    opacity: 0;
}
.logo-light{
    opacity: 1;
}
.reversed-theme .logo-dark{
    opacity: 1;
}
.reversed-theme .logo-light{
    opacity: 0;
}
/* ============================================================================
   4. BASE HTML ELEMENTS
   ============================================================================ */

html {
    overflow-x: hidden;
    touch-action: pan-y;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--secondary-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    touch-action: pan-y;
}

/* ============================================================================
   5. GLOBAL TYPOGRAPHY CLASSES
   ============================================================================ */

.d-primary-heading {
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: clamp(2.5rem, 7vw, 15.125rem); /* ≈ 40px min, ~130px max */
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.d-primary-paragraph {
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    transition: .7s ease-in-out;
}

.gray-text {
    color: var(--secondary-color);
}

.d-split-heading {
    color: var(--secondary-color);
}

.d-section-title {
    color: var(--primary-color);
    font-family: "Neue Montreal";
    font-size: clamp(5rem, 10vw, 12.5rem); /* 40px min, scales up to 150px */
    font-style: normal;
    font-weight: 700;
    line-height: 75%;
}

.d-section-subheading-text {
    text-align: right;
}

/* ============================================================================
   6. GLOBAL LAYOUT CLASSES
   ============================================================================ */

/* Main Container */
.d_container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
}

/* Section Headers */
.d-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.d-section-footer {
    width: 100%;
    display: none;
}

.d-section-subheading {
    display: flex;
    max-width: 542px;
    gap: 20px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}