@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #d4af37;
    --dark-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #222;
    --text-light: #f5f5f5;
    --text-muted: #999;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.abstract-bg {
    background-image: radial-gradient(circle at 10% 16%, rgba(212, 175, 55, 0.11) 0%, rgba(212, 175, 55, 0) 30%), radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 27%), radial-gradient(circle at 78% 76%, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0) 26%), linear-gradient(7deg, transparent 48.6%, rgba(255, 255, 255, 0.08) 49%, transparent 49.4%), linear-gradient(187deg, transparent 65.6%, rgba(212, 175, 55, 0.1) 66%, transparent 66.4%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    font-weight: 600;
    letter-spacing: 1px;
}


/* Navigation */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

nav .container {
    max-width: 1400px;
    max-height: 100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a i {
    margin-right: 0.5rem;
}

.nav-links a.active {
    color: var(--primary-gold);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--text-light);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.menu-toggle:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

.nav-backdrop {
    display: none;
}

body.nav-open {
    overflow: hidden;
}

footer {
    background: #000;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.14) 0, rgba(212, 175, 55, 0) 34%), radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 30%), radial-gradient(circle at 78% 78%, rgba(212, 175, 55, 0.1) 0, rgba(212, 175, 55, 0) 28%);
    pointer-events: none;
    z-index: 0;
}

footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(8deg, transparent 46.5%, rgba(255, 255, 255, 0.11) 47%, transparent 47.5%), linear-gradient(188deg, transparent 62.5%, rgba(212, 175, 55, 0.16) 63%, transparent 63.5%);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.85rem;
    margin-bottom: 1.4rem;
    color: var(--text-light);
}

.footer-column p,
.footer-column li,
.footer-column a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 320px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.social-icon i {
    font-size: 1.2rem;
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-icon:hover {
    color: var(--primary-gold);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.footer-column a:hover {
    color: var(--primary-gold);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.footer-contact ul li i {
    color: var(--primary-gold);
    font-size: 1.05rem;
    margin-top: 0.18rem;
}

.footer-contact ul li:not(:first-child) a {
    color: #ffd700;
}

.footer-contact ul li:not(:first-child) a:hover {
    color: #ffed4e;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 1.6rem;
    text-align: center;
    color: var(--text-muted);
}


/* Utility Classes */

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-style: italic;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    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 fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Animation Utility Classes */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}


/* Stagger animation for children */

.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.animated>*:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.stagger-children.animated>*:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.stagger-children.animated>*:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.stagger-children.animated>*:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.stagger-children.animated>*:nth-child(5) {
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.stagger-children.animated>*:nth-child(6) {
    animation: fadeInUp 0.6s ease 0.6s forwards;
}


/* Button hover animations */

.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hover-effect:hover::before {
    left: 100%;
}


/* Card hover lift effect */

.card-hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}


/* Image zoom effect */

.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover img {
    transform: scale(1.08);
}


/* Shimmer loading effect */

.shimmer {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}


/* Nav link underline animation */

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}


/* Logo pulse on hover */

.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: scale(1.02);
}


/* Section title underline animation */

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.6s ease;
}

.section-title.animate::after,
.section-title.animated::after {
    transform: translateX(-50%) scaleX(1);
}


/* Social icon bounce */

.social-icon {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}


/* Loading spinner */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Glow effect for primary elements */

.glow-gold {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-gold:hover {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}


/* Text reveal animation */

.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.6s ease;
}

.text-reveal.animated span {
    transform: translateY(0);
    opacity: 1;
}


/* Responsive */

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 4%;
    }
    nav .container {
        justify-content: center;
        align-items: center;
        max-height: none;
        min-height: 54px;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1102;
    }
    nav .logo {
        font-size: 1.15rem;
        margin: 0 auto;
        text-align: center;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: min(82vw, 320px);
        height: 100vh;
        margin: 0;
        padding: 4.75rem 1.2rem 1.2rem;
        background: #0d0d0d;
        border-right: 1px solid rgba(212, 175, 55, 0.25);
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        z-index: 1101;
    }
    nav.nav-open .nav-links {
        transform: translateX(0);
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        width: 100%;
        font-size: 0.9rem;
        letter-spacing: 0.6px;
        padding: 0.75rem 0.6rem;
        border: 1px solid transparent;
    }
    .nav-links a:hover {
        background: rgba(212, 175, 55, 0.08);
        border-color: rgba(212, 175, 55, 0.2);
    }
    .nav-links a::after {
        display: none;
    }
    .nav-links a i {
        margin-right: 0.55rem;
    }
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 1100;
        display: block;
    }
    nav.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .section-title {
        font-size: 2rem;
    }
    .container {
        padding: 0 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-column h4 {
        font-size: 1.25rem;
    }
    .footer-column ul li {
        font-size: 0.98rem;
    }
    .footer-brand p {
        font-size: 0.95rem;
    }
    .social-icon {
        width: 40px;
        height: 40px;
    }
    .copyright {
        font-size: 0.9rem;
    }
    body.abstract-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    nav .logo {
        font-size: 1rem;
    }
    .nav-links {
        width: min(88vw, 300px);
    }
    .nav-links a {
        font-size: 0.85rem;
    }
}