/* stop breaking */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 100;
}

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

.logo-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

.contact-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: white;
    color: #1a1a1a;
    border-color: white;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

/* Hero Text */
.hero-text {
    font-size: clamp(4rem, 12vw, 18rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.9;
    text-align: center;
    margin-bottom: 60px;
    color: #f5f5f5;
    user-select: none;
    animation: fadeInUp 1s ease-out;
}

/* Locations */
.locations {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 60px;
    gap: 20px;
}

.location {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease-out;
    flex: 1;
}

.location:nth-child(1) { animation-delay: 0.2s; }
.location:nth-child(2) { animation-delay: 0.4s; }
.location:nth-child(3) { animation-delay: 0.6s; }

.location:hover {
    transform: scale(1.05);
}

.location-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4d00;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.location:hover .location-dot {
    transform: scale(1.2);
}

.location-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.location-country {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 1500px;
    height: 400px;
    background-color: #f43600;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.portrait-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
    border-radius: 20px;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 77, 0, 0.9) 0%, 
        rgba(255, 140, 0, 0.7) 50%, 
        rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Portfolio Section */
.portfolio-section {
    padding: 120px 40px;
    background: #0f0f0f;
    position: relative;
}

.portfolio-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px auto;
}

/* ---------------------- */
/* New theme overrides to match index/contact */
/* ---------------------- */

body {
    background: inherit;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.portfolio-page {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 80px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.12), transparent 36%);
    pointer-events: none;
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.hero-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 32px;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.hero-title {
    font-size: clamp(44px, 6.8vw, 90px);
    font-weight: 300;
    letter-spacing: -1.5px;
    color: #fff;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 760px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0.4px;
    backdrop-filter: blur(10px);
}

.hero-media {
    position: relative;
    width: 100%;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(138, 67, 229, 0.4), rgba(168, 85, 247, 0.2));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.hero-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95;
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(21, 8, 39, 0.6), transparent 60%);
    pointer-events: none;
}

.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.location {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: center;
}

.location-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(138, 67, 229, 0.9), rgba(168, 85, 247, 0.8));
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    grid-row: span 2;
}

.location-name {
    font-weight: 700;
    letter-spacing: 0.6px;
    font-size: 14px;
}

.location-country {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0;
    background: transparent;
    position: static;
}

.portfolio-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-title {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.portfolio-carousel {
    padding: 18px 16px 26px;
}

.carousel-hint {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px 14px;
}

.portfolio-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 360px);
    gap: 18px;
    overflow-x: auto;
    padding: 8px 6px 2px;
    scroll-snap-type: x mandatory;
    scroll-padding: 10px;
}

.portfolio-track::-webkit-scrollbar {
    height: 10px;
}

.portfolio-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.portfolio-track::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(138, 67, 229, 0.8), rgba(168, 85, 247, 0.7));
    border-radius: 999px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    scroll-snap-align: start;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.22);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.14), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.portfolio-item:hover::before { opacity: 1; }

.video-container {
    position: relative;
    width: 100%;
    height: 240px;
    background: rgba(21, 8, 39, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .video-overlay {
    opacity: 0.6;
}

.play-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.28);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 18px solid #1a1a1a;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 3px;
}

.portfolio-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-type {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #e3d7ff;
}

.service-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, rgba(138, 67, 229, 0.9), rgba(168, 85, 247, 0.8));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.project-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.price-tag {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 230, 255, 0.8));
    color: #1a1a1a;
    padding: 10px 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.4px;
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.video-modal.active { display: flex; }

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: rgba(20, 8, 40, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.modal-video { width: 100%; height: auto; display: block; }

.modal-header {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title { font-size: 16px; font-weight: 600; color: white; }

.close-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    transition: color 0.25s ease;
}

.close-button:hover { color: #fff; }

.video-loading {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 980px) {
    .hero-card { padding: 26px; }
    .portfolio-page { padding-bottom: 60px; }
    .portfolio-track { grid-auto-columns: minmax(280px, 1fr); }
}

@media (max-width: 640px) {
    .hero-card { padding: 22px; }
    .glass-card { border-radius: 18px; }
    .portfolio-page { padding: 10px 0 48px; }
    .carousel-hint { margin-left: 2px; }
    .portfolio-track { gap: 14px; }
}

.portfolio-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: #2a2a2a;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.play-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 18px solid #1a1a1a;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 3px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.portfolio-item:hover .video-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.portfolio-content {
    padding: 30px;
}

.service-type {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #ff4d00;
    margin-bottom: 15px;
}

.service-icon {
    width: 20px;
    height: 20px;
    background: #ff4d00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.price-tag {
    display: inline-block;
    background: white;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-header {
    padding: 20px;
    background: #0f0f0f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.close-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: white;
}

/* Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    text-align: center;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 15px 20px;
    }
    
    .logo-img {
        height: 45px;
        width: 45px;
    }
    
    .contact-btn {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    /* Main Container */
    .main-container {
        padding: 0 20px;
        min-height: 90vh;
    }
    
    /* Hero Text */
    .hero-text {
        margin-bottom: 40px;
    }
    
    /* Locations */
    .locations {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        margin-bottom: 40px;
        max-width: 300px;
    }
    
    .location-name {
        font-size: 14px;
    }
    
    .location-country {
        font-size: 11px;
    }
    
    .location-dot {
        width: 10px;
        height: 10px;
        margin-bottom: 15px;
    }
    
    /* Hero Image */
    .hero-image {
        height: 250px;
        border-radius: 15px;
    }
    
    .portrait-img {
        border-radius: 15px;
    }
    
    /* Portfolio Section */
    .portfolio-section {
        padding: 60px 20px;
    }
    
    .portfolio-header {
        margin-bottom: 60px;
    }
    
    .portfolio-title {
        font-size: 14px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-container {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 25px 20px;
    }
    
    .service-type {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .service-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .project-description {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .price-tag {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    /* Video Modal Mobile */
    .video-modal {
        padding: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 14px;
    }
    
    .close-button {
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
    
    .loading-spinner {
        width: 25px;
        height: 25px;
    }
    
    .video-loading {
        font-size: 12px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    
    .main-container {
        padding: 0 15px;
    }
    
    .hero-image {
        height: 220px;
        border-radius: 12px;
    }
    
    .portrait-img {
        border-radius: 12px;
    }
    
    .portfolio-content {
        padding: 20px 15px;
    }
    
    .video-container {
        height: 180px;
    }
    
    .portfolio-item {
        border-radius: 15px;
    }
    
    .video-container {
        border-radius: 15px 15px 0 0;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .main-container {
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 40px;
    }
    
    .hero-text {
        font-size: clamp(3rem, 8vw, 6rem);
        margin-bottom: 30px;
    }
    
    .locations {
        flex-direction: row;
        margin-bottom: 30px;
        max-width: 100%;
        justify-content: space-evenly;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .portrait-img {
        height: 200px;
    }
}
