/* ==========================================
   Responsive Design - Mobile First Approach
   ========================================== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-base: 14px;
    --header-height: var(--header-height-mobile);
    --container-padding: var(--spacing-md);
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .main-navigation {
    display: none;
  }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-base: 15px;
    --header-height: var(--header-height-mobile);
  }
  
  .hero-title {
    font-size: var(--font-size-5xl);
  }
  
  .main-navigation {
    display: none;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: var(--font-size-5xl);
  }
  
  .main-navigation {
    display: none;
  }
  
  .main-navigation .nav {
    gap: var(--spacing-lg);
  }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
  .mobile-sidebar {
    display: none;
  }
  
  .main-navigation {
    display: flex;
  }
  
  .hero-title {
    font-size: var(--font-size-6xl);
  }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: var(--font-size-7xl);
  }
  
  .main-navigation .nav {
    gap: var(--spacing-2xl);
  }
}

/* Ultra Large Devices (Extra Large Desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: calc(var(--font-size-7xl) + 0.5rem);
  }
}

/* ==========================================
   Landscape Orientation Adjustments
   ========================================== */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: 500px;
    height: auto;
    padding: var(--spacing-4xl) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .site-header {
    height: 60px;
  }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
  .site-header,
  .mobile-sidebar {
    display: none;
  }
  
  .hero-section {
    height: auto;
    background-attachment: scroll;
    page-break-after: always;
  }
  
  * {
    color: #000 !important;
    background: transparent !important;
  }
}

/* ==========================================
   Tablet Specific Adjustments
   ========================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    background-attachment: scroll;
  }
  
  .hero-content {
    padding: var(--spacing-3xl) var(--container-padding);
  }
}

/* ==========================================
   Mobile Menu Toggle (if needed)
   ========================================== */
@media (max-width: 991.98px) {
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10000;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-fast);
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }
  
  /* Overlay for mobile menu */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Adjust header for mobile menu button */
  .site-header .d-flex {
    justify-content: space-between;
  }
}

/* ==========================================
   High DPI / Retina Displays
   ========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

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

/* ==========================================
   Our Vision Section - Responsive
   ========================================== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  .our-vision {
    padding: 40px 0;
  }
  
  .our-vision-container {
    padding: 0 20px;
  }
  
  .our-vision-subtitle {
    font-size: 10px;
    letter-spacing: 5px;
    margin-bottom: 15px;
  }
  
  .our-vision-title {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }
  
  .our-vision-title br {
    display: none;
  }
  
  .our-vision-quote {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .our-vision-description {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .our-vision-description br {
    display: none;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 30px;
    font-size: 12px;
  }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .our-vision {
    padding: 50px 0;
  }
  
  .our-vision-container {
    padding: 0 40px;
  }
  
  .our-vision-subtitle {
    font-size: 11px;
    letter-spacing: 6px;
    margin-bottom: 18px;
  }
  
  .our-vision-title {
    font-size: 28px;
    letter-spacing: 3px;
    margin-bottom: 25px;
  }
  
  .our-vision-title br {
    display: none;
  }
  
  .our-vision-quote {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .our-vision-description {
    font-size: 15px;
    margin-bottom: 35px;
  }
  
  .our-vision-description br {
    display: none;
  }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .our-vision {
    padding: 60px 0;
  }
  
  .our-vision-container {
    padding: 0 60px;
  }
  
  .our-vision-subtitle {
    font-size: 12px;
    letter-spacing: 8px;
  }
  
  .our-vision-title {
    font-size: 32px;
    letter-spacing: 5px;
  }
  
  .our-vision-description br {
    display: none;
  }
}

/* Large Devices (Desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .our-vision-container {
    padding: 0 100px;
  }
  
  .our-vision-title {
    font-size: 36px;
    letter-spacing: 8px;
  }
}

/* Extra Large Devices (Large Desktops, 1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .our-vision-container {
    padding: 0 150px;
  }
  
  .our-vision-title {
    font-size: 38px;
  }
}

/* XXL Devices (Larger Desktops, 1400px and up) */
@media (min-width: 1400px) {
  .our-vision-container {
    padding: 0 275px;
  }
}

/* ==========================================
   GFS Services Section - Responsive
   ========================================== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  .gfs-services {
    padding-bottom: 0;
  }
  
  .services-bg {
    height: 300px;
    padding-top: 0;
    align-items: center;
  }
  
  .services-bg-content {
    padding: 0 20px;
  }
  
  .services-subtitle {
    font-size: 10px;
    letter-spacing: 5px;
    margin-bottom: 15px;
  }
  
  .services-main-title {
    font-size: 28px;
    letter-spacing: 3px;
    margin-bottom: 20px;
  }
  
  .services-description {
    font-size: 14px;
  }
  
  .services-description br {
    display: none;
  }
  
  .services-card-wrapper {
    margin: 0 auto;
  }
  
  .services-card {
    padding: 30px 20px;
  }
  
  .services-card-title {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  
  .services-card-subtitle {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 25px;
  }
  
  .trading-session-title {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .trading-details li {
    font-size: 13px;
    padding-left: 20px;
    margin-bottom: 12px;
  }
  
  .services-features {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .feature-title {
    font-size: 16px;
  }
  
  .feature-text {
    font-size: 13px;
  }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gfs-services {
    padding-bottom: 0;
  }
  
  .services-bg {
    height: 350px;
    padding-top: 0;
    align-items: center;
  }
  
  .services-bg-content {
    padding: 0 40px;
  }
  
  .services-subtitle {
    font-size: 11px;
    letter-spacing: 6px;
  }
  
  .services-main-title {
    font-size: 32px;
    letter-spacing: 5px;
  }
  
  .services-description {
    font-size: 15px;
  }
  
  .services-description br {
    display: none;
  }
  
  .services-card-wrapper {
    margin: 0 auto;
  }
  
  .services-card {
    padding: 40px 30px;
  }
  
  .services-card-title {
    font-size: 24px;
    letter-spacing: 2px;
  }
  
  .services-card-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }
  
  .services-features {
    grid-template-columns: 1fr;
    gap: 35px;
    margin: 40px 0;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gfs-services {
    padding-bottom: 100px;
  }
  
  .services-bg {
    height: 400px;
  }
  
  .services-bg-content {
    padding: 0 60px;
  }
  
  .services-subtitle {
    font-size: 12px;
    letter-spacing: 8px;
  }
  
  .services-main-title {
    font-size: 40px;
    letter-spacing: 8px;
  }
  
  .services-description br {
    display: none;
  }
  
  .services-card-wrapper {
    margin: -100px auto 0;
  }
  
  .services-card {
    padding: 50px 40px;
  }
  
  .services-card-title {
    font-size: 28px;
  }
  
  .services-card-subtitle {
    font-size: 20px;
  }
  
  .services-features {
    gap: 35px;
    margin: 45px 0;
  }
}

/* Large Devices (Desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-bg-content {
    padding: 0 100px;
  }
  
  .services-card {
    padding: 55px 60px;
  }
}

/* Extra Large Devices (Large Desktops, 1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .services-bg-content {
    padding: 0 150px;
  }
  
  .services-card {
    padding: 60px 70px;
  }
}

/* XXL Devices (Larger Desktops, 1400px and up) */
@media (min-width: 1400px) {
  .services-bg-content {
    padding: 0 275px;
  }
}

/* ==========================================
   Dark Mode Support (Optional)
   ========================================== */
@media (prefers-color-scheme: dark) {
  /* Variables can be adjusted here if dark mode is needed */
  /* Currently the design is dark by default */
}

/* ==========================================
   Touch Device Optimizations
   ========================================== */
@media (hover: none) and (pointer: coarse) {
  .main-navigation .nav a::after {
    display: none;
  }
  
  .main-navigation .nav a:active {
    color: var(--color-primary);
  }
  
  /* Increase touch targets for better usability */
  .main-navigation .nav a {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .mobile-sidebar .mobile-nav a {
    padding: var(--spacing-lg);
  }
}

/* ==========================================
   Trading Platform Section - Responsive
   ========================================== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  .trading-platform {
    padding: 40px 0;
  }
  
  .trading-platform-container {
    padding: 0 20px;
  }
  
  .platform-subtitle {
    font-size: 10px;
    letter-spacing: 5px;
    margin-bottom: 15px;
  }
  
  .platform-title {
    font-size: 28px;
    letter-spacing: 3px;
    margin-bottom: 40px;
  }
  
  .platform-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .platform-text {
    order: 2;
    padding-bottom: 0;
    display: block;
  }
  
  .platform-text .btn-primary {
    position: static;
    transform: none;
    margin-top: 30px;
    display: inline-block;
  }
  
  .platform-image {
    order: 1;
  }
  
  .platform-app-title {
    font-size: 24px;
    letter-spacing: 2px;
  }
  
  .platform-slogan {
    font-size: 18px;
  }
  
  .platform-description {
    font-size: 14px;
  }
  
  .secure-percentage {
    font-size: 48px;
  }
  
  .secure-text {
    font-size: 16px;
  }
  
  .phone-mockup {
    width: 300px;
  }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .trading-platform {
    padding: 50px 0;
  }
  
  .trading-platform-container {
    padding: 0 40px;
  }
  
  .platform-subtitle {
    font-size: 11px;
    letter-spacing: 6px;
  }
  
  .platform-title {
    font-size: 32px;
    letter-spacing: 5px;
    margin-bottom: 50px;
  }
  
  .platform-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .platform-text {
    order: 2;
    padding-bottom: 0;
    display: block;
  }
  
  .platform-text .btn-primary {
    position: static;
    transform: none;
    margin-top: 30px;
    display: inline-block;
  }
  
  .platform-image {
    order: 1;
  }
  
  .platform-app-title {
    font-size: 26px;
  }
  
  .platform-slogan {
    font-size: 20px;
  }
  
  .phone-mockup {
    width: 350px;
  }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .trading-platform {
    padding: 60px 0;
  }
  
  .trading-platform-container {
    padding: 0 60px;
  }
  
  .platform-subtitle {
    font-size: 12px;
    letter-spacing: 8px;
  }
  
  .platform-title {
    font-size: 36px;
  }
  
  .platform-content {
    gap: 60px;
  }
  
  .phone-mockup {
    width: 380px;
  }
}

/* Large Devices (Desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .trading-platform-container {
    padding: 0 100px;
  }
  
  .platform-content {
    gap: 70px;
  }
  
  .phone-mockup {
    width: 420px;
  }
}

/* Extra Large Devices (Large Desktops, 1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .trading-platform-container {
    padding: 0 150px;
  }
  
  .phone-mockup {
    width: 440px;
  }
}

/* XXL Devices (Larger Desktops, 1400px and up) */
@media (min-width: 1400px) {
  .trading-platform-container {
    padding: 0 275px;
  }
  
  .phone-mockup {
    width: 460px;
  }
}

/* ==========================================
   Footer Responsive Styles
   ========================================== */

/* Tablet View - 992px */
@media (max-width: 992px) {
  .site-footer {
    margin-top: 0;
  }
  
  .footer-flex-wrapper {
    gap: 60px;
  }
  
  .footer-company-col {
    max-width: 380px;
  }
  
  .footer-links-row {
    gap: 50px;
  }
  
  .footer-logo img {
    height: 50px;
  }
}

/* Tablet Small - 768px */
@media (max-width: 768px) {
  .site-footer {
    margin-top: 0;
    padding: 40px 0 0;
  }
  
  .footer-flex-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-company-col {
    max-width: 100%;
  }
  
  .footer-links-wrapper {
    flex: none;
  }
  
  .footer-subscribe-col {
    max-width: 100%;
  }
  
  .footer-disclaimers {
    padding: 25px 0 0;
    margin-top: 30px;
  }
}

/* Mobile - 576px */
@media (max-width: 576px) {
  .site-footer {
    margin-top: 0;
    padding: 30px 20px 0;
  }
  
  .site-footer .container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .footer-flex-wrapper {
    gap: 30px;
  }
  
  .footer-links-row {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .footer-links-col {
    min-width: auto;
  }
  
  .site-footer h5 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .footer-company-col p {
    font-size: 13px;
  }
  
  .contact-info p {
    font-size: 13px;
  }
  
  .footer-links a {
    font-size: 13px;
  }
  
  .social-icons a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .subscribe-form input[type="email"],
  .subscribe-form button[type="submit"] {
    padding: 10px 15px;
  }
  
  .footer-disclaimers {
    padding: 20px 0 0;
    margin-top: 20px;
  }
  
  .footer-disclaimers p {
    font-size: 12px;
  }
  
  .site-footer .border-top {
    padding: 15px 0;
  }
  
  .site-footer .border-top p {
    font-size: 13px;
  }
}

