/* ===================================
   FONTS
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #161a18;
    line-height: 1.5;
    letter-spacing: -0.02em;
    max-width: 180rem;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInBody 0.5s ease forwards;
    cursor: none;
    overflow-x: hidden;
}

@media (max-width: 48rem) {
    body {
        cursor: auto;
    }
    
    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}

@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}

/* ===================================
   CONTAINER SYSTEM
   =================================== */
.container {
    max-width: 120rem;
    margin: 0 auto;
    width: 100%;
    padding: 0 2.5rem;
}

/* ===================================
   HEADER
   =================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2.5rem;
    width: 100%;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.logo {
    width: 6.05rem;
    height: 1.815rem;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #161a18;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* ===================================
   MOBILE MENU
   =================================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.hamburger svg {
    width: 2.25rem;
    height: 2.25rem;
    color: #1c1d1e;
    transition: all 0.3s ease;
}

.hamburger.active .menu-icon {
    display: none;
}

.hamburger.active .close-icon {
    display: block !important;
    color: white;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1c1d1e;
    padding: 1.5rem 2.5rem;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 500;
    padding: 0.75rem 0;
    line-height: 1.0;
    transition: all 0.3s ease;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.mobile-menu-logo {
    filter: brightness(0) invert(1);
}

.mobile-menu-header .hamburger {
    padding: 0.5rem;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    padding-top: 3.75rem;
}

.mobile-menu-contact {
    margin-top: 2rem;
    text-align: left;
}

.mobile-menu-contact p {
    color: #d4d4d8;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.mobile-menu-contact a {
    color: #d4d4d8;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: white;
    padding: 6rem 2.5rem;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 960px;
    width: 100%;
    text-align: left;
}

.hero-text {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #161a18;
}

/* ===================================
   HERO TEXT SECTION
   =================================== */
.hero-text-section {
    padding: 8rem 2.5rem 6rem 2.5rem;
    width: 100%;
    background: white;
}

.hero-text-container {
    max-width: 1160px;
    margin: 0 auto;
}

.hero-text-content {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #161a18;
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects {
    padding: 6rem 2.5rem;
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
}

.projects-header {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #161a18;
    margin-bottom: 4rem;
    text-align: left;
    max-width: 120rem;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
    column-gap: 3.5rem;
    max-width: 120rem;
    margin: 0 auto;
    align-items: start;
}

.project-item {
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-8px);
}

.project-thumbnail {
    width: 100%;
    aspect-ratio: 3/2;
    background: #f0f0f0;
    border-radius: 1.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    transition: border-radius 0.4s ease;
}

.project-item:hover .project-thumbnail {
    border-radius: 0.75rem;
}

.project-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 26, 24, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.project-item:hover .project-thumbnail::after {
    background: rgba(22, 26, 24, 0.1);
}

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

.project-item:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-name {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #161a18;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: 6rem 0;
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
}

.services-content {
    width: 100%;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    align-items: start;
    max-width: 120rem;
    margin: 0 auto;
}

.services-header {
    position: sticky;
    top: 8rem;
}

.services-header h2 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    width: 75%;
    color: #161a18;
    margin-bottom: 1rem;
    line-height: 125%;
}

.services-description {
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #161a18;
}

/* ===================================
   SERVICES ACCORDION
   =================================== */
.services-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-item {
    border-bottom: 0.0625rem solid #7E8AA2;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0 1.25rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3rem;
}

.accordion-title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #161a18;
}

.chevron-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(25%) sepia(8%) saturate(1200%) hue-rotate(202deg) brightness(95%) contrast(89%);
}

.accordion-item.active .chevron-icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 20rem;
}

.accordion-content-inner {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 0 2.5rem 0;
    align-items: flex-start;
}

.accordion-text {
    flex: 1;
}

.accordion-text p {
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #161a18;
    line-height: 1.6;
    margin: 0;
}

.accordion-image {
    width: 9rem;
    height: 9rem;
    border-radius: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.accordion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   PROCESS SECTION
   =================================== */
.process {
    padding: 6rem 2.5rem;
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.process-header {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #161a18;
    text-align: left;
    position: sticky;
    top: 8rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.process-icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.75rem;
}

.process-icon svg {
    width: 100%;
    height: 100%;
    color: #7E8AA2;
}

.process-title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #161a18;
    margin-bottom: 2rem;
}

.process-line {
    width: 100%;
    height: 0.0625rem;
    background: #7E8AA2;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    border-radius: 0;
    padding: 6rem 2.5rem;
    max-width: 120rem;
    margin: 0 auto;
}

.contact-content {
    max-width: 52.5rem;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.contact-header {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #161a18;
    margin-bottom: 1rem;
    text-align: left;
}

.contact-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: #6B7280;
    margin-bottom: 1rem;
    text-align: left;
}

.service-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.service-button {
    padding: 0.75rem 2rem;
    background: white;
    border: 0.0625rem solid #CBD5E1;
    border-radius: 8rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #161a18;
}

.service-button:hover {
    background: #f8f9fa;
}

.service-button.active {
    background: #4338CA;
    color: white;
    border-color: #4338CA;
}

.service-button.active:hover {
    background: #3730A3;
}

.contact-form {
    max-width: 100%;
    margin: 0;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.25rem;
    border: 0.0625rem solid #CBD5E1;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-family: 'Inter', sans-serif;
    background: white;
    color: #000000;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4338CA;
}

.form-label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #6B7280;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 0.25rem;
    font-weight: 400;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-input[data-filled="true"] + .form-label {
    top: -0.5rem;
    left: 1rem;
    transform: translateY(0);
    font-size: 1rem;
    color: #6B7280;
    font-weight: 500;
}

.form-textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.submit-button {
    background: #4338CA;
    color: white;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 8rem;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-button:hover {
    background: #3730A3;
}

.submit-button:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: white;
    padding: 2.5rem 2.5rem;
    max-width: 120rem;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #161a18;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.footer-contact a {
    color: #161a18;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #4338CA;
}

.footer-separator {
    color: #CBD5E1;
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #4338CA;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

.scroll-to-top:hover {
    background: #3730A3;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(67, 56, 202, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

@media (max-width: 48rem) {
    .scroll-to-top {
        width: 3rem;
        height: 3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .scroll-to-top svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ===================================
   CUSTOM CURSOR WITH TRAIL
   =================================== */
.custom-cursor {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: #4338CA;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cursor-follower {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.4) 0%, rgba(67, 56, 202, 0.2) 20%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
    filter: blur(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-cursor.active {
    opacity: 1;
}

.cursor-follower.active {
    opacity: 0.8;
}

.custom-cursor.hover {
    transform: scale(2);
    background: #3730A3;
}

.cursor-follower.hover {
    transform: scale(1.3);
    opacity: 1;
}

/* ===================================
   LARGE TEXT SECTION
   =================================== */
.large-text-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 2.5rem 0;
    background: white;
}

.large-text {
    font-size: 14vw;
    font-weight: 500;
    letter-spacing: -0.06em;
    color: #161a18;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    width: 100%;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* 1440px and below */
@media (max-width: 90rem) {
    .container {
        padding: 0 2.5rem;
    }
    
    .projects-grid {
        max-width: 120rem;
    }
    
    .services-content {
        max-width: 120rem;
    }
    
}

/* 1024px and below */
@media (max-width: 64rem) {
    .container {
        padding: 0 2rem;
    }
    
    .header {
        padding: 1.5rem 2rem;
    }
    
    .mobile-menu {
        padding: 1.5rem 2rem;
    }
    
    .hero {
        padding: 6rem 2rem;
    }
    
    .hero-text-section {
        padding: 6rem 2rem;
    }
    
    .hero-text-content {
        font-size: 2.5rem;
    }
    
    .projects {
        padding: 6rem 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .services {
        padding: 6rem 0;
    }
    
    .services-content {
        padding: 0 2rem;
    }
    
    .services-header {
        position: static;
    }
    
    .services-header h2 {
        width: 100%;
    }
    
    .process {
        padding: 6rem 2rem;
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-header {
        font-size: 2.5rem;
        position: static;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact {
        padding: 6rem 2rem;
    }
    
    .footer {
        padding: 2.5rem 2rem;
    }
}

/* 768px and below */
@media (max-width: 48rem) {
    .container {
        padding: 0 1.25rem;
    }
    
    .header {
        padding: 1.5rem 1.25rem;
        position: relative;
    }
    
    .logo {
        width: 4.84rem;
        height: 1.452rem;
    }
    
    .mobile-menu {
        padding: 1.5rem 1.25rem;
    }
    
    .nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        padding: 6rem 1.25rem;
    }
    
    .hero-text-section {
        padding: 6rem 1.25rem;
    }
    
    .hero-text-content {
        font-size: 2rem;
    }
    
    .projects {
        padding: 6rem 1.25rem;
    }
    
    .projects-header {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services {
        padding: 6rem 0;
    }
    
    .services-content {
        padding: 0 1.25rem;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .services-header {
        position: static;
    }
    
    .services-header h2 {
        font-size: 2rem;
        width: 100%;
    }
    
    .accordion-title {
        font-size: 1.5rem;
    }
    
    .process {
        padding: 6rem 1.25rem;
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-header {
        font-size: 2rem;
        position: static;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .process-title {
        font-size: 1.5rem;
    }
    
    .accordion-content-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .accordion-image {
        width: 100%;
        height: 12rem;
        align-self: center;
    }
    
    .contact {
        padding: 6rem 1.25rem;
    }
    
    
    .service-buttons {
        gap: 0.75rem;
    }
    
    .service-button {
        font-size: 0.875rem;
        padding: 0.625rem 1.5rem;
    }
    
    .contact-header {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .footer {
        padding: 2.5rem 1.25rem;
    }
    
    .footer-content {
        flex-direction: column-reverse;
        text-align: left;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .footer-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 1.125rem;
    }
    
    .footer-separator {
        display: none;
    }
}

/* 480px and below */
@media (max-width: 30rem) {
    .header {
        padding: 1.5rem 1.25rem;
    }
    
    .mobile-menu {
        padding: 1.5rem 1.25rem;
    }
    
    .hero-text {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }
    
    .hero-text-content {
        font-size: 2rem;
    }
    
    .contact-header {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 0.875rem;
    }
    
    .projects-header {
        font-size: 2rem;
    }
    
    .services-header {
        position: static;
    }
    
    .services-header h2 {
        font-size: 2rem;
        width: 100%;
    }
    
    .process-header {
        font-size: 2rem;
        position: static;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-title {
        font-size: 1.25rem;
    }
    
    .service-button {
        font-size: 0.75rem;
        padding: 0.5rem 1.25rem;
    }
}
