/* =========================================
   CSS Variables & Theming
   ========================================= */
   :root {
    /* Colors - Alternative 1 (Petroleum & Orange) */
    --primary-color: #F97316; /* Safety Orange */
    --primary-light: #FB923C;
    --primary-dark: #EA580C;
    
    --secondary-color: #083344; /* Petroleum Blue */
    --secondary-light: #164E63;
    --secondary-dark: #04202C;
    
    --text-main: #334155;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    
    --bg-main: #FAFAFA;
    --bg-light: #F1F5F9;
    --bg-dark: #04202C;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 24px; /* More rounded for modern feel */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother easing */
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.05);
    --shadow-hover: 0 30px 60px rgba(249, 115, 22, 0.15);
}

/* =========================================
   Reset, Base Styles & Custom Cursor
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Optional: Hide default cursor if using custom */
    /* cursor: none; */ 
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 120px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Text Gradient & Highlights */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight-text { color: var(--primary-color); }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* =========================================
   Buttons (Modernized)
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
    transition: var(--transition);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
    color: white;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-4px);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 30px 0;
}

.header.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    transition: var(--transition);
}

.header.scrolled .logo-text {
    color: var(--secondary-dark);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 8px 0;
}

.header.scrolled .nav-link { color: var(--secondary-color); }

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::before, .nav-link.active::before { width: 100%; }

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.header.scrolled .mobile-menu-toggle { color: var(--secondary-color); }

/* =========================================
   Hero Section (Modernized)
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    background-color: var(--bg-dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Animated Glowing Orbs */
.orb-1, .orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%; right: -5%;
    width: 600px; height: 600px;
    background: rgba(249, 115, 22, 0.15); /* Orange */
}

.orb-2 {
    bottom: -10%; left: -10%;
    width: 800px; height: 800px;
    background: rgba(8, 51, 68, 0.6); /* Petroleum */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.04"/></svg>');
    z-index: 2;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero h1 {
    font-size: 5rem;
    color: white;
    margin-bottom: 30px;
    line-height: 1.05;
}

/* Outline Text Effect */
.outline-text {
    -webkit-text-stroke: 2px rgba(255,255,255,0.2);
    color: transparent;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    max-width: 650px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   About Section (Glassmorphism)
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.about .lead {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
}

.icon-large {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: inline-block;
    padding: 20px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 20px;
}

.glass-card h3 {
    margin-bottom: 16px;
    font-size: 1.8rem;
}

/* =========================================
   Expertise Section (Bento Box Layout)
   ========================================= */
.expertise {
    background-color: var(--bg-main);
    position: relative;
}

/* Abstract background lines */
.expertise::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(8, 51, 68, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(8, 51, 68, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

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

.section-header {
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.bento-card {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

/* Hover effects for bento */
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(249, 115, 22, 0.3);
}

.bento-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 0;
    background: linear-gradient(to top, rgba(249, 115, 22, 0.05), transparent);
    transition: var(--transition);
}

.bento-card:hover::after { height: 100%; }

/* Bento Sizing */
.bento-large { grid-column: span 2; grid-row: span 1; }
.bento-tall { grid-column: span 1; grid-row: span 2; justify-content: flex-start; }
.bento-small { grid-column: span 1; grid-row: span 1; }

.bento-icon {
    width: 70px; height: 70px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: auto; /* Pushes content down if flex-end */
    transition: var(--transition);
}

.bento-card:hover .bento-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    margin-top: 24px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   Professional Profile Section
   ========================================= */
.professional {
    background-color: var(--bg-light);
}

.profile-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    aspect-ratio: 4/5;
    transition: transform 0.8s ease;
}

.image-wrapper:hover img { transform: scale(1.05); }

.experience-badge {
    position: absolute;
    bottom: 30px; right: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--secondary-color);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,1);
}

.experience-badge .number {
    font-size: 3rem; font-weight: 800; font-family: var(--font-heading);
    color: var(--primary-color); line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.3;
}

.profile-info h2 { font-size: 3rem; margin-bottom: 8px; }

.profile-info .role {
    color: var(--primary-color);
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px;
}

.profile-info p {
    color: var(--text-muted); margin-bottom: 40px; font-size: 1.15rem; line-height: 1.8;
}

.profile-highlights {
    display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px;
}

.profile-highlights li {
    display: flex; align-items: center; gap: 16px;
    color: var(--secondary-color); font-weight: 500; font-size: 1.05rem;
    background: white; padding: 16px 24px; border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.profile-highlights li:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.profile-highlights i {
    color: var(--primary-color); font-size: 1.5rem;
    width: 30px; text-align: center;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background-color: var(--secondary-dark);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 150px 0;
}

/* CTA Background glow */
.cta-section::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%; pointer-events: none;
}

.cta-content {
    position: relative; z-index: 2; max-width: 800px; margin: 0 auto;
}

.cta-content h2 { color: white; font-size: 3.5rem; margin-bottom: 24px; }
.cta-content p { font-size: 1.25rem; margin-bottom: 50px; color: rgba(255, 255, 255, 0.8); }

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #021118;
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px;
}

.footer-brand .logo-text { font-size: 2.5rem; display: block; margin-bottom: 20px; color: white; }
.footer h4 { color: white; font-size: 1.3rem; margin-bottom: 24px; letter-spacing: 1px; }

.footer-links ul { display: flex; flex-direction: column; gap: 16px; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-contact p { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.05rem; }
.footer-contact i { color: var(--primary-color); font-size: 1.2rem; }

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

/* =========================================
   Animations
   ========================================= */
.fade-in-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.slide-in-left {
    opacity: 0; transform: translateX(-60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

.slide-in-right {
    opacity: 0; transform: translateX(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   Media Queries (Responsive)
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-large { grid-column: span 2; }
    .bento-tall { grid-column: span 1; grid-row: span 1; }
    .profile-grid { grid-template-columns: 1fr; gap: 60px; }
    .image-wrapper { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .header .nav-menu {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background-color: var(--bg-dark); box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: var(--transition); padding-top: 100px;
    }
    .header .nav-menu.active { right: 0; }
    .header .nav-menu ul { flex-direction: column; align-items: flex-start; padding: 30px; gap: 30px; }
    .header .nav-link { color: white; font-size: 1.2rem; }
    .mobile-menu-toggle { display: block; z-index: 1001; }
    
    .hero h1 { font-size: 3rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-tall, .bento-small { grid-column: span 1; }
    .section { padding: 80px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .experience-badge { right: 20px; bottom: 20px; padding: 15px 20px; }
    .experience-badge .number { font-size: 2rem; }
}
