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

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff6b6b;
    --text-color: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.cta-button {
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu span {
    width: 30px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('assets/bg.jpg') no-repeat center center;
    background-size: cover;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.curved-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/curved-lines.svg') no-repeat center;
    background-size: cover;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

/* Partners Section */
#partners {
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.02);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.partner-logos img {
    height: 60px;
    opacity: 0.6;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.partner-logos img:hover {
    opacity: 1;
}

/* Portfolio Section */
#portfolio {
    padding: 100px 0;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.portfolio-filters button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px 15px;
    transition: var(--transition);
}

.portfolio-filters button.active,
.portfolio-filters button:hover {
    color: var(--accent-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    justify-self: center;
    width: 100%;
}

/* Square aspect ratio for small and large items */
.portfolio-item.small,
.portfolio-item.large {
    aspect-ratio: 1/1;
}

/* Wider aspect ratio for medium items */
.portfolio-item.medium {
    aspect-ratio: 16/9;
}

.portfolio-item.small {
    grid-column: span 4;
}

.portfolio-item.medium {
    grid-column: span 6;
}

.portfolio-item.large {
    grid-column: span 8;
}

.portfolio-item.full {
    grid-column: span 12;
    aspect-ratio: 21/9;
}

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

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

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

.portfolio-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    text-align: center;
}

.portfolio-item-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
}

.portfolio-item-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.portfolio-item-info h3::before {
    content: attr(data-text);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.portfolio-item-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .portfolio-item.small {
        grid-column: span 6;
    }
    
    .portfolio-item.medium,
    .portfolio-item.large {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .portfolio-item.small,
    .portfolio-item.medium,
    .portfolio-item.large {
        grid-column: span 12;
    }
}

/* CTA Section */
#cta {
    padding: 100px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

#cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Blog Section */
#blog {
    padding: 100px 0;
    max-width: 1400px;
    margin: 0 auto;
}

#blog h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.blog-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    aspect-ratio: 16/9;
    cursor: pointer;
}

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

.blog-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.blog-item:hover img {
    opacity: 0.4;
}

.blog-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.blog-item-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
    line-height: 1.4;
}

.blog-item-info h3::before {
    content: attr(data-text);
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.blog-item-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.blog-item-info .author-date {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-item-info .author-date::before {
    content: "•";
    color: var(--accent-color);
}

/* Responsive Blog Grid */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer */
footer {
    padding: 50px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.footer-content {
    margin-bottom: 30px;
}

.footer-bottom {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Parallax Effect */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .partner-logos {
        gap: 30px;
    }
    .partner-logos img {
        height: 50px;
    }
    .section-header h2,
    #cta h2,
    #blog h2 {
        font-size: 2rem;
    }
    .portfolio-filters {
        flex-wrap: wrap;
    }
    
    /* Fix background image on mobile */
    .parallax-section {
        background-attachment: scroll !important;
    }
    
    #hero {
        background-attachment: scroll !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Video Icon */
.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.video-icon:hover {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid white;
    margin-left: 5px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-video:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Add overlay for video items */
.portfolio-item.has-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Contact Section */
#contact {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.call-button {
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.call-button i {
    font-size: 1.5rem;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .contact-info {
        gap: 40px;
    }
    
    .contact-item i {
        font-size: 1.5rem;
    }
    
    .contact-item p {
        font-size: 1rem;
    }
}

/* SEO and Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid rgba(255, 107, 107, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove focus outline for specific elements */
.cta-button:focus,
.call-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
} 