/* Color Scheme */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #DC143C;
    --accent-light: #FF6B6B;
    --accent-dark: #B91C1C;
    --text-light: #fff;
    --text-dark: #333;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: rgba(26, 26, 26, 0.9);
    --gradient-end: rgba(51, 51, 51, 0.7);
    --red-accent: #DC143C;
    --red-hover: #B91C1C;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(44, 44, 44, 0.9) 50%, rgba(26, 26, 26, 0.95) 100%),
        url('images/personal.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
    animation: logoFloat 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

.loading-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.ring-1 {
    width: 120px;
    height: 120px;
    top: -60px;
    left: -60px;
    animation-duration: 2s;
}

.ring-2 {
    width: 140px;
    height: 140px;
    top: -70px;
    left: -70px;
    animation-duration: 2.5s;
    animation-direction: reverse;
    border-top-color: var(--accent-light);
}

.ring-3 {
    width: 160px;
    height: 160px;
    top: -80px;
    left: -80px;
    animation-duration: 3s;
    border-top-color: rgba(220, 20, 60, 0.5);
}

.loading-text {
    margin-bottom: 2rem;
}

.loading-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.loading-tagline {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.loading-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    background: rgba(220, 20, 60, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(220, 20, 60, 0.2);
    border-color: rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.loading-progress {
    width: 300px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
    width: 0%;
    animation: progressFill 3s ease-out forwards;
}

.loading-status {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Loading Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoFloat {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-10px) scale(1.05); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    25% { width: 30%; }
    50% { width: 60%; }
    75% { width: 85%; }
    100% { width: 100%; }
}

/* Hide main content during loading */
body.loading {
    overflow: hidden !important;
}

body.loading .hero,
body.loading .navbar,
body.loading .portfolio,
body.loading .cta-section {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* Force loading screen to always show initially */
#loading-screen {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #fafafa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Force single background image on mobile */
    .hero-bg-image {
        object-fit: cover;
        object-position: center;
        filter: brightness(0.5) contrast(1.1);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent-color);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(220, 20, 60, 0.1) 30%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(220, 20, 60, 0.1) 70%,
            rgba(0, 0, 0, 0.7) 100%
        ),
        url('images/wedding shoot backround.jpeg'),
        url('images/wedding shoot backround 2.jpeg');
    background-size: cover, 50% auto, 50% auto;
    background-position: center, left center, right center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.brand-logo {
    margin-bottom: 3rem;
}

.brand-name {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.brand-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: none;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    opacity: 0.9;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0.7;
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navbar.visible {
    transform: translateY(0);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Portfolio Intro */
.portfolio-intro {
    padding: 100px 0 60px;
    background: white;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-style: italic;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--accent-color);
}

/* Portfolio Grid */
.portfolio {
    background: #f8f9fa;
    padding: 40px 0 0;
}

.portfolio-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2px;
    background: white;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f0f0f0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.portfolio-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.portfolio-item:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(0.2) contrast(1.1);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
    filter: grayscale(0) contrast(1.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.overlay-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.icon-btn {
    width: 45px;
    height: 45px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* Instagram CTA */
.instagram-cta {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-instagram {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 15px 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-instagram:hover {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Loading Screen Mobile */
    .loading-brand {
        font-size: 2rem;
    }
    
    .loading-tagline {
        font-size: 1rem;
    }
    
    .loading-contact {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .contact-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .logo-circle {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .ring-1 {
        width: 100px;
        height: 100px;
        top: -50px;
        left: -50px;
    }
    
    .ring-2 {
        width: 120px;
        height: 120px;
        top: -60px;
        left: -60px;
    }
    
    .ring-3 {
        width: 140px;
        height: 140px;
        top: -70px;
        left: -70px;
    }
    
    .loading-progress {
        width: 250px;
    }

    /* Optimize loading screen background for mobile - keep personal photo */
    .loading-screen {
        background: 
            linear-gradient(135deg, rgba(26, 26, 26, 0.90) 0%, rgba(44, 44, 44, 0.85) 50%, rgba(26, 26, 26, 0.90) 100%),
            url('images/personal.jpeg') !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    /* Ensure all loading content is visible on mobile */
    .loading-content {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    .loading-brand,
    .loading-tagline,
    .loading-contact {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Ensure all hero content is visible on mobile */
    .brand-name {
        font-size: 2.5rem;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-title {
        font-size: 2rem;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-subtitle {
        font-size: 1rem;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .brand-tagline,
    .hero-actions {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Simplify hero background for mobile */
    .hero-overlay {
        background: 
            linear-gradient(
                135deg,
                rgba(0, 0, 0, 0.8) 0%,
                rgba(220, 20, 60, 0.1) 50%,
                rgba(0, 0, 0, 0.8) 100%
            ) !important;
        background-size: cover !important;
        background-position: center !important;
        opacity: 0.6 !important;
    }

    .hero-stats {
        gap: 2rem;
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        min-width: 200px;
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .portfolio-item {
        aspect-ratio: 1/1;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .overlay-content h3 {
        font-size: 1.5rem;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-actions {
        gap: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 180px;
    }

    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }
}

/* Portfolio Filter Animation */
.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-item.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2c2c2c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.portfolio-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.portfolio-image.loaded {
    animation: none;
    background: none;
}