/*! (c) 2024-2026 OY Architecture. Proprietary & Confidential. Unauthorized copying is strictly prohibited. */

:root {
  --bg-main: #f4f7fb;       
  --bg-alt: #f1f5f9;        
  --bg-surface: #ffffff;    
  --bg-input: #eef2f6;
  --text-main: #1f2937;
  --text-muted: #64748b;
  --primary: #0f172a;
  --primary-hover: #334155;
  --accent: #2563eb;
  --border: #e2e8f0;
  --shadow: rgba(0,0,0,0.06);
}

[data-theme="dark"] {
  --bg-main: #090e17;       
  --bg-alt: #111827;        
  --bg-surface: #1e293b;    
  --bg-input: #0f172a;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --border: #334155;        
  --shadow: rgba(0,0,0,0.5);
}

body { font-family: "Inter", sans-serif; background-color: var(--bg-main); color: var(--text-main); transition: background-color 0.3s ease, color 0.3s ease; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, h5, h6 { font-family: "Poppins", sans-serif; color: var(--text-main); transition: color 0.3s ease; }
section { padding: 80px 0; transition: background-color 0.3s ease; }
.section-bg { background-color: var(--bg-alt); }
.section-title { text-align: center; padding-bottom: 40px; }
.section-title h2 { font-size: 32px; font-weight: 700; text-transform: uppercase; position: relative; padding-bottom: 20px; }
.section-title h2::after { content: ""; position: absolute; display: block; width: 50px; height: 3px; background: var(--accent); bottom: 0; left: calc(50% - 25px); border-radius: 5px; }
.rounded-custom { border-radius: 12px; box-shadow: 0 10px 30px var(--shadow); }

#preloader { position: fixed; inset: 0; z-index: 99999; background: var(--bg-main); display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loader-brand { font-family: "Poppins", sans-serif; font-size: 3rem; font-weight: 700; color: var(--accent); letter-spacing: 4px; animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.settings-menu { position: fixed; top: 25px; right: 25px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (min-width: 991px) { .settings-menu { right: 35px; } } 
.control-btn { background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: pointer; box-shadow: 0 4px 12px var(--shadow); transition: all 0.3s; font-family: "Inter", sans-serif; font-weight: 600; outline: none;}
.control-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gear-btn i { transition: transform 0.4s ease; }
.gear-btn.active i { transform: rotate(180deg); }
.settings-options { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
.settings-options.active { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-text { font-size: 12px; margin-left: 2px; }

#header { position: fixed; top: 0; left: 0; bottom: 0; z-index: 9997; padding: 25px 15px; overflow-y: auto; background: var(--bg-surface); border-right: 1px solid var(--border); transition: all 0.4s; }
@media (max-width: 991px) { #header { width: 300px; left: -300px; } }
@media (min-width: 991px) { #main { margin-left: 120px; } #header { background: transparent; border: none;} }
.nav-menu * { margin: 0; padding: 0; list-style: none; }
.nav-menu a { display: flex; align-items: center; color: var(--text-muted); padding: 14px 20px; margin-bottom: 12px; font-size: 16px; font-weight: 500; border-radius: 50px; background: var(--bg-surface); border: 1px solid var(--border); height: 58px; width: 100%; transition: all 0.3s; overflow: hidden; box-shadow: 0 2px 5px var(--shadow); }
.nav-menu a i { font-size: 24px; }
.nav-menu a span { padding: 0 5px 0 12px; }
@media (min-width: 992px) { .nav-menu a { width: 58px; } .nav-menu a span { display: none; color: #fff; } }
.nav-menu a:hover, .nav-menu .active { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 10px rgba(37,99,235,0.3);}
.nav-menu a:hover span, .nav-menu .active span { color: #fff; }
.nav-menu a:hover { width: 100%; }
.nav-menu a:hover span { display: block; }
.mobile-nav-toggle { position: fixed; right: 15px; top: 15px; z-index: 9998; font-size: 28px; cursor: pointer; color: var(--text-main); }
.mobile-nav-active #header { left: 0; background: var(--bg-surface); }

#hero { width: 100%; height: 100vh; background: url("../img/hero-bg.jpg") top right no-repeat; background-size: cover; position: relative; }
[data-theme="dark"] #hero { background-blend-mode: overlay; background-color: rgba(9, 14, 23, 0.9); }
#hero:before { content: ""; background: var(--bg-surface); opacity: 0.85; position: absolute; inset: 0; transition: background 0.3s; }
[data-theme="dark"] #hero:before { opacity: 0.6; }
#hero .container { position: relative; z-index: 1; }
#hero h1 { font-size: 64px; font-weight: 700; letter-spacing: -1px; }
#hero p { font-size: 24px; font-weight: 400; color: var(--text-muted); }
#hero p span { color: var(--accent); font-weight: 600; }
#hero .social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px;}
#hero .social-links a { font-size: 22px; background: var(--bg-surface); color: var(--text-main); width: 48px; height: 48px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s; border: 1px solid var(--border); box-shadow: 0 4px 10px var(--shadow); }
#hero .social-links a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 5px 15px rgba(37,99,235,0.4); }
@media (max-width: 992px) { #hero { text-align: center; } #hero h1 { font-size: 36px; } #hero p { font-size: 18px; } #hero .social-links { justify-content: center; } }

.about .content h3 { font-weight: 700; font-size: 24px; }
.about .cv-text { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.about .cv-details ul { list-style: none; padding: 0; }
.about .cv-details ul li { margin-bottom: 15px; display: flex; align-items: center; font-size: 15px;}
.about .cv-details ul i { font-size: 18px; margin-right: 8px; color: var(--accent); }
.about .cv-details ul strong { margin-right: 8px; }

.facts .count-box { padding: 40px 30px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; text-align: center; transition: all 0.3s; box-shadow: 0 5px 20px var(--shadow); }
.facts .count-box:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 25px var(--shadow); }
.facts .count-box i { font-size: 32px; color: var(--accent); margin-bottom: 15px; display: block;}
.facts .count-box span { font-size: 42px; font-weight: 700; color: var(--text-main); display: block; margin-bottom: 5px;}

.skills .progress { height: auto; background: none; border-radius: 0; margin-bottom: 25px; overflow: visible; display: block;}
.skills .skill-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text-main); }
.skills .progress-bar-wrap { background: var(--bg-input); border-radius: 4px; height: 6px; width: 100%; border: 1px solid var(--border); position: relative; }
.skills .progress-bar { height: 100%; background-color: var(--accent); border-radius: 4px; transition: width 1.5s ease-in-out; position: relative;}
.skills .progress-bar::after { content: ""; position: absolute; right: -5px; top: -3px; width: 12px; height: 12px; background: var(--bg-surface); border: 3px solid var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }

.resume .resume-title { font-size: 22px; font-weight: 700; margin-top: 20px; margin-bottom: 20px; color: var(--text-main); border-bottom: 2px solid var(--border); padding-bottom: 10px; display: inline-block;}
.resume .resume-item { padding: 0 0 20px 20px; border-left: 2px solid var(--border); position: relative; }
.resume .resume-item h4 { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.resume .resume-item h5 { font-size: 14px; background: var(--bg-surface); border: 1px solid var(--border); padding: 5px 15px; display: inline-block; font-weight: 500; border-radius: 4px; margin-bottom: 15px;}
.resume .resume-item::before { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50px; left: -8px; top: 0; background: var(--bg-surface); border: 2px solid var(--accent); transition: 0.3s; }
.resume .resume-item:hover::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.services .icon-box { padding: 40px 30px; background: var(--bg-surface); border-radius: 12px; border: 1px solid var(--border); transition: 0.3s; height: 100%; box-shadow: 0 5px 20px var(--shadow); }
.services .icon-box:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 10px 30px var(--shadow); }
.services .icon { width: 60px; height: 60px; background: var(--bg-input); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); font-size: 30px; transition: 0.3s;}
.services .icon-box:hover .icon { background: var(--accent); color: #fff; }
.services .icon-box h4 { font-size: 20px; font-weight: 600; margin-bottom: 15px; }
.services .icon-box p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0;}

.testimonials .testimonials-slider { padding-bottom: 60px; } 
.testimonials .testimonial-item { background: var(--bg-surface); padding: 30px; border-radius: 12px; border: 1px solid var(--border); text-align: center; margin: 15px; box-shadow: 0 5px 20px var(--shadow); }
.testimonials .testimonial-item h3 { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.testimonials .testimonial-item h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;}
.testimonials .testimonial-item p { font-style: italic; font-size: 15px; color: var(--text-main); position: relative;}
.testimonials .swiper-pagination { bottom: 0 !important; } 
.testimonials .swiper-pagination-bullet { background: var(--border); opacity: 1; width: 12px; height: 12px; margin: 0 6px !important; transition: all 0.3s ease; }
.testimonials .swiper-pagination-bullet-active { background: var(--accent); transform: scale(1.2); }

.contact .info, .contact .php-email-form { background: var(--bg-surface); padding: 40px; border-radius: 12px; border: 1px solid var(--border); height: 100%; box-shadow: 0 5px 20px var(--shadow); }
.contact .info i { font-size: 24px; color: var(--accent); background: var(--bg-input); width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border-radius: 12px; float: left; margin-right: 15px;}
.contact .info h4 { font-size: 18px; font-weight: 600; margin: 0 0 5px 0; }
.contact .info p { font-size: 14px; color: var(--text-muted); margin: 0; padding-top: 5px;}
.contact .info .map-box { clear: both; padding-top: 15px; }
.contact .php-email-form input, .contact .php-email-form textarea { background: var(--bg-input); color: var(--text-main) !important; border: 1px solid var(--border); border-radius: 6px; padding: 12px 15px; font-size: 14px; transition: 0.3s; width: 100%; }
.contact .php-email-form input:focus, .contact .php-email-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.contact .php-email-form input::placeholder, .contact .php-email-form textarea::placeholder { color: var(--text-muted) !important; opacity: 0.7; }
.contact .php-email-form button[type=submit] { background: var(--accent); color: #fff; border: none; padding: 12px 40px; font-weight: 600; border-radius: 6px; transition: 0.3s; font-family: "Inter", sans-serif; }
.contact .php-email-form button[type=submit]:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px var(--shadow); }

#footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
#footer h3 { font-size: 28px; font-weight: 700; margin-bottom: 10px; letter-spacing: -1px;}
#footer .warning-text { font-size: 14px; color: var(--text-muted); max-width: 800px; margin: 0 auto; line-height: 1.8;}
#footer .warning-text strong { color: var(--text-main); }
#footer .warning-text small { display: block; margin-top: 10px; font-size: 12px; color: #dc3545; font-weight: 500; }
[data-theme="dark"] #footer .warning-text small { color: #f87171; }

.ad-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 99998; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.ad-modal-overlay.show { opacity: 1; visibility: visible; }
.ad-modal-content { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; width: 90%; max-width: 400px; text-align: center; position: relative; transform: translateY(30px); transition: all 0.4s ease; box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.ad-modal-overlay.show .ad-modal-content { transform: translateY(0); }
.close-ad-btn { position: absolute; top: -15px; right: -15px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-main); font-size: 20px; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px var(--shadow); }
.close-ad-btn:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.ad-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }