* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header Styles */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    background: #323d42;
        color: #fff;
    z-index: 1000;
}

.nav-left a, .nav-right a {
    text-decoration: none;
    color: #ffffff;
    margin: 0 1rem;
    font-weight: 500;
    display: inline-block; /* Ensures transform works properly */
}

.nav-right a {
    background: #2d1e17;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative; /* Ensures text stays visible */
    overflow: hidden;
}

/* Wrap text inside span to avoid opacity issues */
.nav-right a span {
    position: relative;
    z-index: 1; /* Keeps text visible */
}

/* Animation */
@keyframes menuHoverEffect {
    0% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 60px;
    background: #cbdced; /* Light background */
}

.animated-header {
    font-size: 4rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.animated-text {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
    display: inline-block;
}

.sub-text {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 0.5s;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.logos-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 80px; /* Adjust size */
    height: 80px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Optional background */
}

.logo img {
    width: 80%;
    height: 80%;
    object-fit: cover; /* Ensures image fills the circle */
    border-radius: 50%;
}

/* New Quote Section Styles */
.quote-section {
    background-color: #000;
    padding: 8rem 5%;
    text-align: center;
}

.bold-quote {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.case-study-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* Space between case studies */
    margin: 50px 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    
}

.case-study {
    width: 100%;
    max-width: 1100px; /* Ensures it doesn't go beyond */
    text-align: center;
}

.case-study-image {
    width: 100%;
    max-width: 1079px; /* Sets the max width */
    height: 701px; /* Fixed height */
    object-fit: cover; /* Ensures image fills space */
    border: 3px solid #000000; /* Light border */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.case-study-button {
    margin-top: 15px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background-color: #000000;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Hover effect */
.case-study-button:hover {
    background-color: #5a5a5a;
}

/* Services Section */
.services-section {
    padding: 8rem 5%;
    background: #fff;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

@keyframes slideDown {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0; /* Start as hidden */
    position: relative; /* Needed for :after to position correctly */
    display: flex;
    justify-content: center; /* Centers the text */
    align-items: center;
    animation: slideDown 0.8s ease-out forwards;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px; /* Adjusts spacing */
    width: 60px;
    height: 4px;
    background: #333;
    left: 50%;
    transform: translateX(-50%); /* Ensures it stays centered */
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative; /* For proper positioning of children */
}

.service-item {
    position: relative;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Contain children within bounds */
    cursor: pointer;
}

.service-number {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0.5;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.5s ease;
}

.service-title {
    font-size: 3.8rem;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.service-image {
    position: absolute;
    right: 0; /* Changed from negative value */
    top: 50%;
    width: 250px;
    height: 180px;
    overflow: hidden;
    transform: translateY(-50%) scale(0.7) rotate(-5deg);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animation on hover */
@keyframes serviceHoverEffect {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0;
    }
    51% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Line separating items */
.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Changed from 150% to prevent overflow */
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Desktop-only animations */
@media (min-width: 769px) {
    .service-item:hover .service-number,
    .service-item:hover .service-title {
        animation: serviceHoverEffect 0.8s ease-in-out forwards;
    }
    
    .service-item:hover .service-image {
        transform: translateY(-50%) scale(1) rotate(0);
        opacity: 0.9;
    }
    
    .nav-left a:hover,
    .nav-right a:hover {
        animation: menuHoverEffect 0.9s ease-in-out;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .case-study-image {
        width: 95%;
        height: auto; /* Allows proportional scaling */
    }
    
    .service-title {
        font-size: 3rem; /* Smaller font on medium screens */
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .nav-left a, .nav-right a {
        font-size: 0.9rem;
        margin: 0 0.5rem;
    }

    .animated-header {
        font-size: 2.5rem;
    }

    .sub-text {
        font-size: 1rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .bold-quote {
        font-size: 1.8rem;
        padding: 0 5%;
    }
    
    .case-study {
        width: 100%;
    }

    .case-study-image {
        width: 95%;
        height: auto; /* Keeps it responsive on smaller screens */
    }
    
    /* Service image now stays visible on mobile but is repositioned */
    .service-image {
        position: static; /* Remove absolute positioning on mobile */
        display: block; /* Make sure it's visible */
        transform: none; /* Reset transform */
        margin: 20px auto; /* Center it */
        opacity: 0.9; /* Make it visible */
        width: 200px; /* Slightly smaller on mobile */
        height: 150px;
    }
    
    /* Adjust service items to accommodate displayed images */
    .service-item {
        padding: 30px 0;
        display: flex;
        flex-direction: column;
    }
    
    .service-title {
        font-size: 2rem; /* Smaller font on mobile */
    }
    
    .section-title {
        font-size: 2rem;
    }
}
/* Section Styling */
.talk-section {
    padding: 40px;
    background: #323d42;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-heading {
    font-size: 38px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.contact-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4776E6, #8E54E9);
    border-radius: 2px;
}

.contact-container {
    display: flex;
    gap: 40px;
}

.contact-left {
    flex: 1;
}

.contact-right {
    flex: 1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.contact-item i {
    font-size: 24px;
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item span {
    font-size: 16px;
    color: #555;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    height: 100%;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    flex-grow: 1;
}

.contact-form button {
    background: linear-gradient(90deg, #4776E6, #8E54E9);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form button:hover {
    background: linear-gradient(90deg, #3a66d6, #7e46d9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

@media (max-width: 768px) {
    .talk-section {
        padding: 25px;
        margin: 20px;
    }
    
    .contact-container {
        flex-direction: column;
    }
}
.contact-item a {
    text-decoration: none;
}

.contact-item a span {
    color: #555;
    transition: color 0.3s ease;
}

.contact-item:hover a span {
    color: #6c5ce7;
}

/* Skills Section */
.skills-section {
    padding: 6rem 5%;
    background: #f9f9f9;
}

.skills-header {
    text-align: center;
    margin-bottom: 4rem;
}

.skills-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skills-header p {
    color: #666;
    font-size: 1.1rem;
}

.skill-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-image {
    width: 40px;
    height: 40px;
    background: #eee;
    margin: 0 auto 1rem;
    border-radius: 8px;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.skill-card span {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skills-header h2 {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .skill-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.case-study-section {
    display: flex;
    gap: 20px;
}

.case-study {
    flex: 1;
}

.video-container {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.case-study-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid black;
    border-radius: 10px;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.overlay-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.overlay-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.tech-stack {
    display: flex;
    gap: 10px;
    justify-content: center; /* Centers items horizontally */
    align-items: center; /* Centers items vertically (if needed) */
}

.tech-stack img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes icons white */
}
