@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
    --bg-marble: #FDFAF6;
    --card-bg: #FFFFFF;
    --gold: #D4AF37;
    --gold-dark: #B6922E;
    --text-main: #2B2B2B;
    --text-muted: #5A5A5A;
    --border-color: rgba(212, 175, 55, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --theme-transition: background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease, background 0.8s ease, box-shadow 0.8s ease, backdrop-filter 0.8s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-marble);
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--theme-transition);
    position: relative;
}

/* --- BLUE AURA EFFECT --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 80px rgba(0, 122, 255, 0.15);
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* Polished metallic effect for headings */
h1, h2, h3, .logo, .silver-text, .arrow-link {
    background: linear-gradient(
        110deg,
        #111111 0%,
        #333333 25%,
        #777777 45%,
        #EAEAEA 50%,
        #777777 55%,
        #333333 75%,
        #111111 100%
    );
    background-size: 300% 100%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -1px;
}

.logo span { color: var(--gold); -webkit-text-fill-color: var(--gold); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

/* Hover Underline Animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), #FFFFFF);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover { 
    color: var(--gold); 
    transform: translateY(-2px);
}

.login-btn {
    border: 1px solid transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--text-main) !important;
    display: inline-block;
}

.login-btn:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
    color: var(--gold) !important;
    transform: translateY(3px);
}

/* --- HERO SECTION --- */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Dynamic Mesh Background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.08), transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(0, 122, 255, 0.05), transparent 40%),
                radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.05), transparent 40%);
    filter: blur(80px);
    z-index: -1;
    animation: meshFlow 20s ease-in-out infinite alternate;
}

@keyframes meshFlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, -5%) rotate(5deg); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    max-width: 600px;
    line-height: 1.6;
}

/* Button Styles */
.cta-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--gold);
    color: #FFFFFF; /* White text on gold background */
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    background: var(--gold-dark); /* shift to darker gold on hover */
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--gold-dark);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

/* Image Container Setup */
.image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Golden Aura removed as per user request to drop background container */
.golden-aura {
    display: none;
}

/* Main Portrait */
.main-portrait {
    width: 100%;
    filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.3));
    transition: var(--transition);
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 1;
    animation: portraitPulse 4s ease-in-out infinite;
}

@keyframes portraitPulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.2)); }
    50% { filter: drop-shadow(0 0 60px rgba(255, 215, 0, 0.5)); }
}

.image-wrapper:hover .main-portrait {
    filter: drop-shadow(0 0 80px rgba(255, 215, 0, 0.7));
    transform: scale(1.02);
    animation-play-state: paused;
}

/* Floating Logos */
.floating-logo {
    position: absolute;
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: floating ease-in-out infinite;
    box-sizing: content-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.floating-logo:hover {
    transform: scale(1.1) rotate(5deg) !important;
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.logo-1 { /* Top Left */
    top: 5%;
    left: -15%;
    animation-duration: 4.2s;
    animation-delay: 0s;
}

.logo-2 { /* Top Right */
    top: 10%;
    right: -15%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.logo-3 { /* Bottom Left */
    bottom: 5%;
    left: -10%;
    animation-duration: 4.5s;
    animation-delay: 2s;
}

.logo-4 { /* Bottom Right */
    bottom: 0%;
    right: -10%;
    animation-duration: 6s;
    animation-delay: 3s;
}
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- PROJECT CARDS --- */
.projects {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Subtle light shadow */
}

/* Shimmer Edge Effect for Light Mode */
.project-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(90deg, #FFFFFF, var(--gold), #FFFFFF);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes shinyEdge {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.arrow-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
}

/* Removed hover color change for arrow link as per user request */
/* .project-card:hover .arrow-link {
    -webkit-text-fill-color: var(--gold);
} */

.project-card:hover {
    border-color: transparent;
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.1); /* Gold tinted elevation */
}

.project-card:hover::before {
    opacity: 1;
    animation: shinyEdge 3s ease infinite;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .nav-links { display: none; }
    .cta-btns { justify-content: center; }
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- CONTACT FORM --- */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); /* Light crisp shadow */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-marble); /* Light internal background */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); /* Modern gold focus ring */
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--gold-dark);
}

/* --- DARK / SILVER THEME --- */
[data-theme="dark"] {
    --bg-marble: #0B0B0C;
    --card-bg: #151516;
    --text-main: #EAEAEA;
    --text-muted: #A0A0A0;
    --border-color: rgba(192, 192, 192, 0.15);
    --gold: #D1D1D1; /* Replaced Gold with Light Silver */
    --gold-dark: #9E9E9E; /* Replaced Dark Gold with Darker Silver */
}

/* Update Glassmorphism Navbar for Dark Theme */
[data-theme="dark"] nav {
    background: rgba(11, 11, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-links a::after {
    background: linear-gradient(90deg, var(--gold), #333333);
}

/* Project Card Glow */
[data-theme="dark"] .project-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.05);
    background: #111112; /* Slightly darker to make the gold text pop */
}

[data-theme="dark"] .project-card::before {
    background: linear-gradient(90deg, #0B0B0C, rgba(212, 175, 55, 0.4), #0B0B0C);
}

/* Fix Glowing Text Issue: Make Dark Mode Headings Bright and Slick */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] .logo, 
[data-theme="dark"] .silver-text, 
[data-theme="dark"] .arrow-link {
    background: linear-gradient(
        110deg,
        #A0A0A0 0%,
        #EAEAEA 30%,
        #FFFFFF 50%,
        #EAEAEA 70%,
        #A0A0A0 100%
    );
    background-size: 300% 100%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- THEME TOGGLE BTN --- */
.theme-toggle-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
}
.theme-toggle-btn:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* --- MOBILE HAMBURGER --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- MOBILE NAV OVERLAY --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-marble);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

[data-theme="dark"] .mobile-menu { background: rgba(11, 11, 12, 0.95); }

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    transition: var(--transition);
}

.mobile-menu a:hover { color: var(--gold); }

/* --- INTERMEDIATE BREAKPOINTS (Tablet/Laptop) --- */
@media (max-width: 1024px) {
    .hero-grid { gap: 2rem; }
    .hero-text h1 { font-size: 3.8rem; }
    .container { padding: 0 1.5rem; }
}

/* --- GLOBAL THEME TRANSITIONS --- */
body, nav, .project-card, .contact-card, .form-group input, .form-group textarea, .btn-primary, .btn-secondary, h1, h2, h3, .logo, .nav-links a {
    transition: var(--theme-transition);
}

/* --- RESPONSIVENESS & BREAKPOINTS --- */
@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-text h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; margin-right: -10px; }
    
    nav { 
        width: 92%;
        left: 50%;
        transform: translateX(-50%); 
        padding: 0.7rem 1.8rem; 
        border-radius: 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo { font-size: 1.2rem; }

    .hero { padding: 140px 0 60px; }
    .hero-text h1 { font-size: 2.8rem; }
    .cta-btns { justify-content: center; flex-direction: column; width: 100%; max-width: 250px; margin: 2rem auto 0; }
    
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }

    .section-title { font-size: 2rem; }
    .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 320px) {
    .hero-text h1 { font-size: 2.2rem; }
    .logo { font-size: 1rem; }
    nav { padding: 0.5rem 1.2rem; }
    .contact-card { padding: 1.5rem; }
}

/* --- PROFESSIONAL ADMIN DASHBOARD --- */
.admin-body { background: #0B0B0C; color: #EAEAEA; }
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 280px;
    background: #050505;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-main { flex: 1; padding: 4rem; }

.sidebar-logo { font-size: 1.5rem; font-weight: 900; margin-bottom: 3rem; color: var(--gold); }
.admin-nav { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.admin-nav li a {
    color: #A0A0A0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}
.admin-nav li a.active, .admin-nav li a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151516;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.item-actions { display: flex; gap: 1rem; }
.edit-btn { color: var(--gold); cursor: pointer; background: none; border: none; font-weight: bold; }
.delete-btn { color: #ff4757; cursor: pointer; background: none; border: none; font-weight: bold; }

/* --- READING MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-marble);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 4rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] .modal-content { background: #151516; color: #EAEAEA; }

.close-modal {
    position: absolute;
    top: 2rem; right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* --- ENTERPRISE ADMIN OVERRIDES --- */
.admin-body {
    background: #0B0B0C !important;
    color: #EAEAEA !important;
}

.admin-body .section-title {
    color: var(--gold) !important;
    -webkit-text-fill-color: var(--gold) !important;
    background: none !important;
}

.admin-body .contact-card {
    background: #151516 !important;
    border-color: rgba(255,255,255,0.05) !important;
}

.admin-body .form-group label {
    color: #A0A0A0 !important;
}

.admin-body .form-group input,
.admin-body .form-group textarea {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #FFFFFF !important;
}

.admin-body .form-group input:focus {
    background: rgba(255,255,255,0.07) !important;
    border-color: var(--gold) !important;
}

.admin-body .manage-item span {
    color: #EAEAEA !important;
    font-weight: 500 !important;
}

.admin-body .nav-item {
    color: #A0A0A0 !important;
}

.admin-body .nav-item.active {
    color: var(--gold) !important;
}

.admin-body .nav-category {
    color: #444 !important;
}

/* Modal text visibility */
.admin-body .modal-content h3 {
    color: #FFF !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}
.admin-body .modal-content label {
    color: #A0A0A0 !important;
}

/* Fix for Managing text */
.admin-body h3 {
    color: var(--gold) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* --- PREMIUM FOOTER --- */
.site-footer {
    padding: 4rem 0 2rem;
    background: var(--bg-marble);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    transition: var(--theme-transition);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    width: 100%;
    padding-top: 1.5rem;
}

.terms-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.7;
}

.terms-link:hover {
    color: var(--gold);
    opacity: 1;
}

[data-theme="dark"] .site-footer {
    background: #0B0B0C;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .social-links a:hover {
    color: #FFFFFF;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}
