/* assets/css/home.css */
/* Home Page Specific Styles - Hero Section Enhanced */

/* Enhanced Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(10, 77, 104, 0.95) 0%, 
        rgba(23, 75, 128, 0.9) 50%, 
        rgba(42, 93, 159, 0.85) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2305BFDB" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') center/cover no-repeat;
    overflow: hidden;
    padding: 120px 0 80px;
    color: var(--white);
}

/* Hero Content Layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Hero Text Styling */
.hero-text {
    color: var(--white);
    text-align: left;
    animation: fadeInLeft 1s ease-out forwards;
}

/* Main Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgb(255, 255, 255) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInFromLeft 1s ease 0.3s forwards;
    opacity: 0;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    animation: slideInFromLeft 1s ease 0.5s forwards;
    opacity: 0;
}

/* Hero Tagline */
.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 90%;
    animation: slideInFromLeft 1s ease 0.7s forwards;
    opacity: 0;
}

/* Location Highlights */
.hero-tagline strong {
    color: #FFD700;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-tagline strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #05BFDB);
    animation: underlineExpand 1s ease 1s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    gap: 12px;
    line-height: 1;
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.95) 0%, 
        rgba(255, 184, 0, 0.9) 100%);
    color: var(--primary-blue);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 1) 0%, 
        rgba(255, 184, 0, 0.95) 100%);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.7s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* Hero Image Section */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.5s forwards;
    opacity: 0;
}

/* Floating Image Container */
.floating-image-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    animation: float 6s ease-in-out infinite;
}

/* Main Profile Image Frame */
.image-frame {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, 
        rgba(5, 191, 219, 0.3) 0%, 
        rgba(10, 77, 104, 0.3) 50%,
        rgba(255, 215, 0, 0.2) 100%);
    border-radius: 25px;
    display: inline-block;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(255, 215, 0, 0.3), 
        transparent 30%
    );
    animation: rotate 4s linear infinite;
    z-index: -1;
}

/* Profile Image */
.profile-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-image:hover {
    transform: scale(1.02) rotate(-1deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(5, 191, 219, 0.3);
}

/* Badge on Image */
.image-badge {
    position: absolute;
    top: 20px;
    right: -15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatElement 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    background: linear-gradient(135deg, 
        rgba(5, 191, 219, 0.2), 
        rgba(10, 77, 104, 0.2));
}

.floating-element:nth-child(2) {
    bottom: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    animation-delay: 1s;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2), 
        rgba(255, 184, 0, 0.2));
}

.floating-element i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-arrow {
    width: 3px;
    height: 30px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -6px;
    width: 15px;
    height: 15px;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-8px) translateX(-50%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes underlineExpand {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Responsive Design for Mobile Devices */
@media screen and (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        text-align: center;
        min-height: auto;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
        order: 1;
        margin-top: 60px;
    }
    
    .hero-image {
        order: 2;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
        line-height: 1.2;
        background: linear-gradient(90deg, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(5, 191, 219, 0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    .hero-tagline {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
        line-height: 1.6;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        min-height: 56px;
        font-size: 1.1rem;
        padding: 16px 32px;
    }
    
    .floating-image-container {
        max-width: 320px;
    }
    
    .image-badge {
        top: 15px;
        right: -10px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .floating-element {
        display: none; /* Hide floating elements on mobile for performance */
    }
}

/* Specific optimizations for iPhone 14/15/16 Pro Max */
@media screen and (max-width: 430px) {
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .floating-image-container {
        max-width: 280px;
    }
}

/* Samsung S21, S22, S23, S24 FE specific optimizations */
@media screen and (max-width: 412px) and (min-height: 800px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.625rem;
    }
}

/* Large mobile devices and small tablets */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .hero-tagline {
        font-size: 1.125rem;
    }
    
    .floating-image-container {
        max-width: 380px;
    }
}

/* Desktop optimizations */
@media screen and (min-width: 1025px) {
    .hero-content {
        gap: 5rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
}

/* Ultra-wide screens */
@media screen and (min-width: 1440px) {
    .hero-content {
        gap: 6rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .floating-image-container {
        max-width: 500px;
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .hero-tagline,
    .hero-buttons,
    .hero-image,
    .scroll-indicator,
    .profile-image:hover,
    .floating-element,
    .image-badge {
        animation: none !important;
        transition: none !important;
    }
    
    .image-frame::before {
        animation: none;
        display: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    .hero {
        background: linear-gradient(135deg, 
            rgba(10, 77, 104, 0.95) 0%, 
            rgba(23, 75, 128, 0.9) 50%, 
            rgba(42, 93, 159, 0.85) 100%),
            url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2305BFDB" fill-opacity="0.15" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') center/cover no-repeat;
    }
    
    .image-frame {
        background: linear-gradient(135deg, 
            rgba(5, 191, 219, 0.2) 0%, 
            rgba(10, 77, 104, 0.2) 50%,
            rgba(255, 215, 0, 0.15) 100%);
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image {
        image-rendering: -webkit-optimize-contrast;
    }
}



/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .hero-tagline,
    .hero-buttons {
        animation: none;
        opacity: 1;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .profile-image:hover {
        transform: none;
    }
}

/* Introduction Section */
.intro-section {
    padding: 8rem 0;
    background: var(--white);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.intro-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.intro-description {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.intro-image {
    text-align: center;
}

.image-frame {
    padding: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: var(--border-radius);
    display: inline-block;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: calc(var(--border-radius) - 4px);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.02);
}

/* Services Preview */
.services-preview {
    padding: 8rem 0;
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.375rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--accent-cyan);
    gap: 12px;
}

/* Companies preview */
.companies-preview {
    padding: 50px 0;
}

.logo-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: scrollLogos 25s linear infinite;
    padding: 20px 0;
}

.company-logo {
    width: 140px;
    height: auto;
    filter: grayscale(100%) brightness(0.7);
    transition: 0.3s ease;
    opacity: 0.8;
}
.logo-img {
    width: 140px;
    filter:none;
}

/* Hover to show color */
.company-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.06);
}

/* Animation */
@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .company-logo {
        width: 100px;
        gap: 25px;
    }
    .logo-track {
        gap: 30px;
        animation-duration: 30s;
    }
}


/* Blog Preview */
.blog-preview {
    padding: 8rem 0;
    background: var(--background);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.blog-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-title {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-link:hover {
    color: var(--accent-cyan);
    gap: 12px;
}

.blog-cta {
    text-align: center;
}

/* Testimonials */
.testimonials {
    padding: 8rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--background);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow);
}

.stars {
    color: var(--accent-cyan);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.125rem;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.client-details {
    text-align: left;
}

.client-name {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.client-role {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0B5D8A 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}