/*
Theme Name: MAK CEO Portfolio
Theme URI: https://mak.ceo
Author: Muhammad Ali Khan
Author URI: https://mak.ceo
Description: A premium, luxury CEO portfolio theme with stunning animations, glassmorphism effects, and gold accent design. Built for executives and entrepreneurs.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mak-ceo
Tags: one-column, custom-background, custom-logo, custom-menu, featured-images, theme-options, translation-ready, portfolio
*/

/* ========================================
   CSS VARIABLES & BASE
======================================== */
:root {
  --gold-50: #fdf8ef;
  --gold-100: #f9ecd4;
  --gold-200: #f2d6a8;
  --gold-300: #e9ba72;
  --gold-400: #e2a04e;
  --gold-500: #d4882e;
  --gold-600: #c4701e;
  --gold-700: #a3561b;
  --gold-800: #85451d;
  --gold-900: #6d3a1b;
  
  --navy-50: #f0f4f8;
  --navy-100: #d9e2ec;
  --navy-200: #bcccdc;
  --navy-300: #9fb3c8;
  --navy-400: #829ab1;
  --navy-500: #627d98;
  --navy-600: #486581;
  --navy-700: #334e68;
  --navy-800: #243b53;
  --navy-900: #102a43;
  --navy-950: #0a1929;
  
  --font-playfair: 'Playfair Display', serif;
  --font-outfit: 'Outfit', sans-serif;
  --font-inter: 'Inter', sans-serif;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  background: var(--navy-950);
  color: var(--navy-100);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ========================================
   CUSTOM SCROLLBAR
======================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-950);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--gold-500), var(--gold-600));
  border-radius: 3px;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-200), var(--gold-500), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(16, 42, 67, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 136, 46, 0.15);
  border-radius: 4px;
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 136, 46, 0.3), transparent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(to right, var(--gold-600), var(--gold-500));
  color: var(--navy-950);
  font-family: var(--font-outfit);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(212, 136, 46, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-outfit);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: rgba(212, 136, 46, 0.5);
  color: var(--gold-400);
}

/* Section styling */
.section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.section-label {
  display: inline-block;
  font-family: var(--font-outfit);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-playfair);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-desc {
  font-family: var(--font-outfit);
  font-size: 1.125rem;
  color: var(--navy-300);
  max-width: 42rem;
  margin: 1.5rem auto 0;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

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

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   PRELOADER
======================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 5rem;
  height: 5rem;
  border: 2px solid var(--gold-400);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: scaleIn 0.8s ease forwards;
}

.preloader-logo span {
  font-family: var(--font-playfair);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-400);
}

.preloader-text {
  font-family: var(--font-playfair);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.1em;
}

.preloader-text small {
  display: block;
  font-family: var(--font-outfit);
  font-size: 0.625rem;
  color: var(--gold-400);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.preloader-bar {
  width: 12rem;
  height: 1px;
  background: var(--navy-800);
  margin: 2rem auto 0;
  overflow: hidden;
  border-radius: 999px;
}

.preloader-bar-inner {
  height: 100%;
  background: linear-gradient(to right, var(--gold-600), var(--gold-400));
  animation: loading 1.5s ease forwards;
}

@keyframes loading {
  from { width: 0; }
  to { width: 100%; }
}
