/* 
  CG Trends - Luxury branding agency 
  Design System 
*/

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #B8860B;
    --dark-bg: #0B0B0B;
    --surface-bg: #1A1A1A;
    --text-light: #F5F5F5;
    --text-muted: #A0A0A0;
    --glass: rgba(255, 255, 255, 0.05);
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s forwards;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(11, 11, 11, 0.9);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.nav-links a.active {
    color: var(--primary-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-gold);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

/* Footer Section */
footer {
    background: var(--surface-bg);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gold);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

/* Service Detail Cards */
.services-grid-detailed {
    background: var(--dark-bg);
}

.service-detail-card {
    padding: 60px;
    border-radius: 20px;
    transition: var(--transition);
}

.service-detail-card h3 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.service-detail-card .desc {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.benefits {
    margin-bottom: 40px;
}

.benefits li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.benefits li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

/* Portfolio grid */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-muted);
    padding: 8px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 450px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 11, 11, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info h3 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.portfolio-info span {
    color: var(--primary-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Page Specifics */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 30px;
}

.team-card .img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-gold);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Page Specifics */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-box h3 {
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item .icon {
    color: var(--primary-gold);
}

.contact-form-wrapper {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-gold);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff4d4d;
}

.form-group.error .error-msg {
    display: block;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label input {
    width: 20px !important;
    height: 20px !important;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label span {
    line-height: 1.4;
}

/* Background Motion Effects */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--dark-bg);
}

.bg-shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.25;
    /* Increased opacity */
    animation: move 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-gold);
    top: -100px;
    right: -100px;
    animation-duration: 25s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #1a3a5f;
    /* Deep Blue hint */
    bottom: -150px;
    left: -150px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--secondary-gold);
    top: 40%;
    left: 20%;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Responsive for forms */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.grid {
    display: grid;
    gap: 40px;
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.align-center {
    align-items: center;
}

/* Glass Section */
.glass-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(11, 11, 11, 1) 100%);
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, var(--dark-bg) 70%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.hero .accent {
    color: var(--primary-gold);
    display: block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.center-btn {
    text-align: center;
    margin-top: 50px;
}

/* CTA Banner */
.cta-banner {
    text-align: center;
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.cta-banner h2 {
    color: var(--dark-bg);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-banner .btn-primary {
    background: var(--dark-bg);
    color: var(--primary-gold);
    border-color: var(--dark-bg);
}

.cta-banner .btn-primary:hover {
    background: transparent;
    color: var(--dark-bg);
}

/* Text Link */
.text-link {
    display: inline-block;
    color: var(--primary-gold);
    font-weight: 600;
    margin-top: 15px;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    border-bottom-color: var(--primary-gold);
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--surface-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}