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

@font-face {
    font-family: 'Priestacy';
    src: url('Priestacy.otf') format('opentype'),
         url('Priestacy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #EBEBEB;
}


/* Header Styles */
.header {
    background-color: transparent;
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 0;
}

/* Navigation Links */
.navbar-nav {
    gap: 8rem;
}

.navbar-nav .nav-link {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1.35rem;
    color: #333 !important;
    padding: 0 !important;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #000 !important;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Add subtle underline effect on hover */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4A574 0%, #A855D4 100%);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background-color: #EBEBEB;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 8rem;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.main-hero-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.hero-greeting {
    font-size: 3.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hello-text {
    background: linear-gradient(90deg, #DAA520 0%, #8A2BE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

.greeting-text {
    font-weight: 300;
}

.hero-subtitle {
    font-family: 'Priestacy', 'Privacy', 'Pinyon Script', cursive;
    font-size: 2.5rem;
    color: #555;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    margin-left: 10rem;
    transform: none; /* Make horizontal, not declined */
}

.hero-title {
    font-family: 'Lato', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: #000;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-top: 1rem;
    margin-bottom: 0;
    text-transform: uppercase;
}

/* Profile Image Container */
.profile-container {
    position: relative;
    height: 100%;
    z-index: 10;
}

.profile-img {
    width: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin-bottom: -10px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.1));
}

/* Bottom Bar */
.hero-footer-bar {
    width: 100%;
    background: linear-gradient(90deg, #D6A42E 0%, #7B2F9E 100%);
    padding: 1rem 0;
    text-align: center;
    position: relative;
    z-index: 5;
    margin-top: auto;
}

.hero-tagline {
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;
    font-weight: 300; /* Light weight */
    margin: 0;
    letter-spacing: 0.05em; /* Increased spacing for elegance */
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 6rem;
    }
    .hero-greeting {
        font-size: 2.8rem;
    }
    .navbar-nav {
        gap: 4rem;
    }
}

@media (max-width: 991.98px) {
    .header {
        position: relative;
        padding: 1rem 0;
    }
    
    .hero-section {
        padding-top: 2rem;
        height: auto;
        min-height: auto;
    }
    
    .navbar-collapse {
        background: rgba(235, 235, 235, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        gap: 1rem;
        margin-top: 1rem;
        text-align: center;
    }

    .navbar-nav .nav-link {
        font-size: 1.3rem;
        padding: 0.5rem 0 !important;
        font-family: 'Lato', sans-serif;
    }

    .hero-greeting {
        font-size: 2.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .hero-subtitle {
        margin-left: 0;
        font-size: 2rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }
    
    .profile-img {
        max-height: 400px;
        margin-top: 2rem;
    }
}

/* Section Styles */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: center;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4A574 0%, #A855D4 100%);
    border-radius: 1px;
}

.title-underline {
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #D4A574 0%, #A855D4 100%);
    margin: 0 auto 2rem;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.3);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-bio-highlight {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

.about-bio-text {
    font-size: 1.25rem;
    font-weight: 300;
    color: #666;
    line-height: 1.8;
    margin-bottom: 3rem;
}



/* Contact Section */
.contact-section {
    padding: 6rem 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-color: #EBEBEB; /* Matches main background */
}

.contact-cta-text {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 2.2rem;
    color: #444;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.contact-buttons-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.btn-contact {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 3rem;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-email {
    background: linear-gradient(90deg, #D48C28 0%, #7B2F9E 100%); /* Orange/Brown to Purple */
    color: white;
    box-shadow: 0 4px 15px rgba(123, 47, 158, 0.2);
    border: none;
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 47, 158, 0.3);
    color: white;
}

.btn-whatsapp {
    background: linear-gradient(#EBEBEB, #EBEBEB) padding-box,
                linear-gradient(90deg, #D4A574, #A855D4) border-box;
    border: 2px solid transparent;
    color: #333;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #D4A574, #A855D4) border-box;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    color: #000;
}

@media (max-width: 768px) {
    .contact-cta-text {
        font-size: 1.5rem;
    }
    
    .contact-buttons-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .btn-contact {
        width: 100%;
        max-width: 300px;
    }
    
    .portfolio-card-inner {
        padding: 2rem 1.5rem;
    }
    
    .portfolio-icon {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .portfolio-card-title {
        font-size: 1.4rem;
    }
    
    .portfolio-card-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Portfolio Cards */
.portfolio-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(168, 85, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    position: relative;
    z-index: 2;
}

/* Folio Grid System */
.folio-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Wrap on smaller screens, or nowrap for scroll */
    padding: 20px 0;
}

.folio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.folio-item:hover {
    transform: translateY(-5px);
}

.folio-card {
    width: 160px;
    height: 160px;
    border-radius: 35px; /* Rounded corners as per image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    cursor: pointer;
}

.folio-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

/* Card Colors */
.card-image {
    background: #E86C00;
    padding: 0;
    border: none;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-brown {
    background-color: #BF7E5D; /* Muted darker peach/brown */
}

.card-pink {
    background-color: #E75480; /* Bold Pink */
}

.card-purple-light {
    background-color: #9B30FF; /* Purple */
}

.card-purple {
    background-color: #7B1FA2; /* Deep Purple */
}

.card-blue {
    background-color: #4000FF; /* Electric Blue */
}

/* Typography */
.folio-text {
    font-family: 'Times New Roman', serif;
    font-size: 1.4rem;
    line-height: 1.1;
    text-align: center;
    z-index: 2;
}

.folio-script {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.2rem;
    display: block;
    margin-top: -5px;
    font-weight: 400;
}

/* Specific text styling per card */
/* Card 2: Typo (Dark Brown Text, White Script) */
.card-brown .folio-text { color: #3E2723; }
.card-brown .folio-script { color: #FFFFFF; }

/* Card 3: T-Shirt (White Text) */
.card-pink .folio-text,
.card-pink .folio-script { color: #FFFFFF; }

/* Card 4, 5, 6: White Text */
.card-purple-light .folio-text,
.card-purple-light .folio-script,
.card-purple .folio-text,
.card-purple .folio-script,
.card-blue .folio-text,
.card-blue .folio-script { color: #FFFFFF; }

/* B/W Badge */
.folio-badge {
    background-color: #222;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    position: absolute;
    bottom: 20px;
    font-family: sans-serif;
    letter-spacing: 1px;
}

/* Arabic Label */
.folio-label-arabic {
    margin-top: 15px;
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .folio-card {
        width: 140px;
        height: 140px;
    }
    .folio-script {
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {
    .folio-container {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 20px;
    }
    
    /* Ensure first item has left spacing */
    .folio-item:first-child {
        margin-left: 10px;
    }
    .folio-item:last-child {
        margin-right: 10px;
    }

    /* Hide scrollbar */
    .folio-container::-webkit-scrollbar {
        height: 6px;
    }
    .folio-container::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.1); 
        border-radius: 3px;
    }

    .folio-card {
        width: 130px;
        height: 130px;
        border-radius: 25px;
    }
}

/* PDF Viewer Modal */
.pdf-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.pdf-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 2vh auto;
    padding: 0;
    width: 95%;
    height: 96vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-header {
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-pdf {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.close-pdf:hover,
.close-pdf:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.pdf-container {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

/* Sound Toggle Button */
.sound-toggle-btn {
    position: fixed;
    top: 30px; /* Moved to top */
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sound-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    padding: 3rem 0 2rem;
    color: #fff;
}

.footer-text {
    color: #999;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    color: #D4A574;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #A855D4;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .about-section,
    .contact-section {
        padding: 4rem 0;
    }
    
    .hero-tagline {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Mobile Menu Toggle */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    border: 1px solid #999;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: #666;
}

.navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: fadeInDown 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus States for Accessibility */
.navbar-nav .nav-link:focus,
.navbar-toggler:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom: 2px solid #000;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:focus {
        border-color: #000;
    }
}
