/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #c9a96e;
    --accent-color: #8b7355;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --bg-light: #f8f6f3;
    --bg-white: #ffffff;
    --border-color: #e0d5c7;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
}

section {
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 1.5rem 0;
    background-color: transparent;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar.scrolled .brand-name {
    color: var(--primary-color);
}

.nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-dark) !important;
    margin: 0 1rem;
    padding: 0.5rem 0 !important;
    position: relative;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.75) 100%),
                url('https://images.unsplash.com/photo-1478720568477-152d9b164e26?w=1920&h=1080&fit=crop') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: 8px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 4px;
    font-weight: 400;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 2rem auto;
    animation: scaleIn 0.8s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-primary-custom {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border: 2px solid var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition);
    font-family: 'Cormorant Garamond', serif;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 169, 110, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border: 2px solid var(--bg-white);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
}

.btn-outline-custom:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    transform: translate(-20px, -20px);
    z-index: 1;
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image-frame {
    transform: translate(-25px, -25px);
}

.about-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.02);
}

.about-text {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-white);
    border-left: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.skill-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.gallery-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 0.7rem 2rem;
    margin: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cormorant Garamond', serif;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.gallery-grid {
    margin-top: 2rem;
}

.gallery-item {
    transition: var(--transition);
}

.gallery-item.hide {
    display: none;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    height: 400px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-overlay p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay h4,
.gallery-card:hover .gallery-overlay p {
    transform: translateY(0);
}

/* ============================================
   Resume Section
   ============================================ */
.resume-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.resume-category {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-top: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.resume-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resume-category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.resume-category-title i {
    color: var(--secondary-color);
    margin-right: 1rem;
}

.resume-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resume-item h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resume-role {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.resume-year {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.resume-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: inline-block;
}

.skill-tag:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.testimonials-section .section-title {
    color: var(--bg-white);
}

.testimonials-section .title-underline {
    background-color: var(--secondary-color);
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.testimonial-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.contact-info {
    background-color: var(--bg-light);
    padding: 2.5rem;
    height: 100%;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

.contact-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-item p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0;
}

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

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    color: var(--primary-color);
    font-size: 1.2rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form .form-control {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-family: 'Cormorant Garamond', serif;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer .small {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .nav-link {
        margin: 0.5rem 0;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        display: block;
        width: 100%;
    }
    
    .about-image-frame {
        transform: translate(-10px, -10px);
    }
    
    .gallery-card {
        height: 300px;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin: 0.3rem;
    }
    
    .resume-category {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
