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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --bg-color: #ffffff;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #64b5f6;
    --secondary-color: #ff6b6b;
    --accent-color: #ffd93d;
    --text-dark: #f5f5f5;
    --text-light: #b0b0b0;
    --bg-light: #1e1e1e;
    --bg-color: #121212;
    --white: #121212;
    --black: #f5f5f5;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--bg-light);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

[data-theme="dark"] .logo {
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-light);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--text-light);
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

[data-theme="dark"] .nav-menu a {
    color: var(--text-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

[data-theme="dark"] .hamburger span {
    background: var(--text-dark);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('https://images.unsplash.com/photo-1452587925148-ce544e77e70d?w=1920') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

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

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--bg-light);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* ========================================
   Featured Work
   ======================================== */
.featured-work {
    padding: 5rem 0;
    background: var(--white);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .featured-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

[data-theme="dark"] .featured-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.featured-item:hover .featured-image img {
    transform: scale(1.1);
}

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

.featured-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   About Preview
   ======================================== */
.about-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

[data-theme="dark"] .about-preview {
    background: #0f1419;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 3/4;
}

[data-theme="dark"] .about-image {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

[data-theme="dark"] .about-text h2 {
    color: var(--secondary-color);
}

.about-intro {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* ========================================
   Services
   ======================================== */
.services {
    padding: 5rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: var(--bg-light);
    transition: var(--transition);
}

[data-theme="dark"] .service-card {
    background: #1e2530;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

[data-theme="dark"] .service-card h3 {
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 5rem 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

[data-theme="dark"] .footer {
    background: #0f1419;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--black);
}

.footer-section p {
    color: var(--text-light);
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1a2332, #1e2530);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.page-header p {
    color: #ffffff;
    opacity: 0.95;
}

/* ========================================
   Portfolio Filters
   ======================================== */
.portfolio-filters {
    padding: 2rem 0;
    background: var(--bg-light);
}

[data-theme="dark"] .portfolio-filters {
    background: #0f1419;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

[data-theme="dark"] .filter-btn {
    background: #1e2530;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
}

/* ========================================
   Portfolio Gallery
   ======================================== */
.portfolio-gallery {
    padding: 3rem 0 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .gallery-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

[data-theme="dark"] .gallery-overlay {
    background: rgba(0, 0, 0, 0.9);
}

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

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

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-top: 1rem;
}

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

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .lightbox {
    background: rgba(0, 0, 0, 0.98);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    padding: 10px 20px;
    user-select: none;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--secondary-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    font-size: 1.2rem;
}

/* ========================================
   About Page
   ======================================== */
.about-main {
    padding: 5rem 0;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image-large {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 3/4;
}

.about-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.about-text-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
}

[data-theme="dark"] blockquote {
    background: #1e2530;
    border-left-color: var(--secondary-color);
    color: var(--text-light);
}

blockquote i {
    color: var(--secondary-color);
    margin: 0 0.5rem;
}

/* ========================================
   Skills
   ======================================== */
.skills {
    padding: 5rem 0;
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .skill-item {
    background: #1e2530;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-item p {
    color: var(--text-dark);
}

[data-theme="dark"] .skill-item h3 {
    color: var(--secondary-color);
}

[data-theme="dark"] .skill-item p {
    color: var(--text-light);
}

/* ========================================
   Timeline
   ======================================== */
.journey {
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

[data-theme="dark"] .timeline-content {
    background: #1e2530;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .timeline-content h3 {
    color: var(--secondary-color);
}

.timeline-content p {
    color: var(--text-dark);
}

[data-theme="dark"] .timeline-content p {
    color: var(--text-light);
}

/* ========================================
   Equipment
   ======================================== */
.equipment {
    padding: 5rem 0;
    background: var(--bg-light);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.equipment-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
}

[data-theme="dark"] .equipment-item {
    background: #1e2530;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.equipment-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.equipment-item h4 {
    color: var(--primary-color);
}

[data-theme="dark"] .equipment-item h4 {
    color: var(--secondary-color);
}

.equipment-item p {
    color: var(--text-dark);
}

[data-theme="dark"] .equipment-item p {
    color: var(--text-light);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: var(--text-light);
}

.contact-text a {
    color: var(--text-light);
}

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

.social-connect h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.social-links-large a {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-large a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

[data-theme="dark"] .contact-form-wrapper {
    background: #1e2530;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

[data-theme="dark"] .form-group label {
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: #0f1419;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

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

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--secondary-color);
    background: #1a1e25;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

[data-theme="dark"] .form-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #4ade80;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

[data-theme="dark"] .form-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-item i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.faq-item p {
    color: var(--text-light);
}

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

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

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* ========================================
   Loading State for Images
   ======================================== */
img.loading {
    opacity: 0;
}

img.loaded {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .about-content-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-grid,
    .services-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 5px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -28px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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