/* ========================================
   Donald Arch Template - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --gold: #C6A75E;
    --bg-light: #F8F8F8;
    --bg-secondary: #EEEEEE;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #DDDDDD;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.accent {
    color: var(--gold);
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--gold);
    border-radius: 50%;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-radius: 2px;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav {
    margin-left: auto;
    margin-right: 20px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-item a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
}

.nav-item.active a,
.nav-item a:hover {
    color: var(--gold);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.linkedin-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
}

.linkedin-link:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.search-btn,
.mobile-menu-toggle {
    font-size: 18px;
    color: var(--text-primary);
}

.search-btn:hover,
.mobile-menu-toggle:hover {
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
}

/* ========================================
   Hero Video
   ======================================== */
.hero-video {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Fallback Image (hidden by default, shown if video fails) */
.hero-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none;
}

/* Show fallback if video fails to load */
.hero-video-bg:not([src]),
.hero-video-bg[src=""]~.hero-fallback-image {
    display: block;
}

/* Subtle overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
    color: var(--white);
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Contact Button */
.btn-contact {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.btn-contact::before,
.btn-contact::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.btn-contact::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.btn-contact::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.btn-contact:hover {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.3;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.services-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.service-item {
    display: flex;
    gap: 30px;
}

.service-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gold);
}

.service-text h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.service-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ========================================
   Portfolio Grid
   ======================================== */
.portfolio-section {
    padding: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 14px;
    font-weight: 300;
    color: var(--gold);
}

/* ========================================
   CTA Bar
   ======================================== */
.cta-bar {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
}

.btn-view-more {
    position: relative;
    padding: 15px 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-view-more::before,
.btn-view-more::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
}

.btn-view-more::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.btn-view-more::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.btn-view-more:hover {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* ========================================
   Experience Counter
   ======================================== */
.experience-section {
    padding: 120px 0;
    background-color: var(--white);
}

.experience-content {
    text-align: center;
}

.experience-number {
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 20px;
}

.experience-text {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-primary);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--text-primary);
    color: var(--white);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    position: relative;
    opacity: 1;
    text-align: center;
}

.testimonial.active {
    opacity: 1;
    position: relative;
}

.testimonial-text {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.8;
    font-style: italic;
    text-align: center;
}

.testimonial-author {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--gold);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active,
.testimonial-dots .dot:hover {
    background-color: var(--gold);
    border-color: var(--gold);
}

/* ========================================
   Skills Section
   ======================================== */
.skills-section {
    padding: 120px 0;
    background-color: var(--white);
}

.skills-container {
    max-width: 900px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 40px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-name i {
    font-size: 20px;
    color: var(--gold);
}

.skill-percentage {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background-color: var(--gold);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-progress.animated {
    width: var(--progress-width);
}

/* ========================================
   Blog Section
   ======================================== */
.blog-section {
    padding: 120px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-card {
    background-color: var(--white);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}

.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.blog-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.blog-toggle:hover {
    background-color: var(--gold);
    color: var(--white);
}

.blog-toggle i {
    transition: transform 0.3s ease;
}

.blog-card.expanded .blog-toggle i {
    transform: rotate(180deg);
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-category {
    color: var(--gold);
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
}

.blog-excerpt-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.blog-card.expanded .blog-excerpt-wrapper {
    max-height: 500px;
    margin-top: 20px;
}

.blog-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.blog-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
}

.blog-link:hover {
    text-decoration: underline;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-info {
    background-color: var(--bg-secondary);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.contact-text {
    margin-bottom: 50px;
}

.contact-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-text p:last-child {
    margin-bottom: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gold);
}

.contact-detail-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-detail-text a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail-text a:hover {
    color: var(--gold);
}


.contact-form-wrapper {
    background-color: var(--white);
    color: var(--text-primary);
    padding: 80px 60px;
}

.contact-form-wrapper h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.required-star {
    color: var(--gold);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.btn-send {
    position: relative;
    padding: 15px 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.btn-send::before,
.btn-send::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
}

.btn-send::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.btn-send::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.btn-send:hover {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--gold);
    border-color: var(--gold);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--text-primary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .hero-title {
        font-size: 60px;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        display: none;
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item a {
        font-size: 18px;
        display: block;
        width: 100%;
    }

    /* Hero Video - Less zoom on mobile */
    .hero-video-bg {
        object-fit: contain;
        background-color: #000;
        transform: translate(-50%, -50%) scale(0.4);
        max-width: none;
        max-height: none;
    }

    .hero-fallback-image {
        object-fit: contain;
        background-color: #000;
        transform: scale(0.4);
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .section-title {
        font-size: 32px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .experience-number {
        font-size: 120px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 60px 30px;
    }
}