/* 
   Premium Minimalistic Black & White Theme
   Shopify & Web Developer Portfolio
*/

/* ===== BASE STYLES ===== */
:root {
    --color-black: #000;
    --color-white: #fff;
    --color-light-gray: #f5f5f5;
    --color-mid-gray: #e0e0e0;
    --color-dark-gray: #333;
    --color-text: #1a1a1a;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--color-black);
}

h1 {
    font-size: 6rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 4.2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 2rem;
    color: var(--color-dark-gray);
}

a {
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

.highlight {
    font-weight: 700;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

/* ===== LAYOUT ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 1rem;
    }
}

section {
    padding: 10rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--color-light-gray);
}

/* ===== ELEGANT WHY ME SECTION (horizontal steps style) ===== */
.elegant-whyme {
    background: var(--color-white);
    padding-bottom: 0;
}
.whyme-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 4rem;
    border-bottom: 1px solid var(--color-mid-gray);
    padding-bottom: 3rem;
    flex-wrap: wrap;
}
.whyme-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    flex: 1 1 220px;
    position: relative;
}
.whyme-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #3a86ff 50%, #e0e0e0 100%);
    opacity: 0.3;
    z-index: 1;
}
.whyme-step-icon {
    font-size: 2.8rem;
    color: #3a86ff;
    background: #eaf2ff;
    border-radius: 50%;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px #3a86ff11;
}
.whyme-step-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    text-align: center;
}
.whyme-step-desc {
    color: var(--color-dark-gray);
    font-size: 1.35rem;
    text-align: center;
    max-width: 220px;
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .whyme-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 2.5rem;
        border-bottom: none;
        padding-bottom: 0;
    }
    .whyme-step {
        min-width: 0;
        flex: 1 1 100%;
    }
    .whyme-step:not(:last-child)::after {
        display: none;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.separator {
    width: 6rem;
    height: 2px;
    background-color: var(--color-black);
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--color-black);
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-black);
}

.btn-secondary:hover {
    color: var(--color-white);
}

.btn-small {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    background-color: transparent;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    font-family: var(--font-secondary);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links li a {
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-black);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 101;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: var(--color-light-gray);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-text h1 {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-text p {
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
}

.hero-text .cta-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.9s;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 45%;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s forwards 0.7s;
    min-height: 300px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    z-index: 2;
}

.hero-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
    display: block !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-image:hover img {
    filter: grayscale(0);
}

.hero-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    border: 2px solid var(--color-black);
    z-index: 1;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    padding-bottom: 125%; /* 4:5 aspect ratio */
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-black);
    z-index: -1;
}

.image-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.image-frame:hover img {
    filter: grayscale(0);
}

.about-text h3 {
    margin-bottom: 2rem;
}

.skills {
    margin-top: 4rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-item span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.skill-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-mid-gray);
    position: relative;
}

.skill-level {
    height: 100%;
    background-color: var(--color-black);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    animation: skillAnimation 1.5s forwards ease-in-out;
}

@keyframes skillAnimation {
    to {
        width: var(--width, 0);
    }
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

/* ===== PROJECTS SECTION ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-dark-gray);
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-black);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-black);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 80%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-details {
    text-align: center;
    padding: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-details h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.project-details p {
    color: var(--color-mid-gray);
    margin-bottom: 2rem;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: grayscale(0);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-details {
    transform: translateY(0);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.testimonial-item.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.testimonial-content {
    background-color: var(--color-white);
    padding: 5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-mid-gray);
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.client-info h4 {
    margin-bottom: 0.5rem;
}

.client-info p {
    margin-bottom: 0;
    font-size: 1.4rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.prev-btn,
.next-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-dark-gray);
    transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
    color: var(--color-black);
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
    margin: 0 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-mid-gray);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--color-black);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-details {
    margin: 4rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    margin-right: 2rem;
}

.contact-item p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--color-black);
    border-radius: 50%;
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.contact-form {
    background-color: var(--color-white);
    padding: 4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

input,
textarea {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid var(--color-mid-gray);
    background-color: transparent;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-black);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0;
}

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

.footer-logo a {
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 2.4rem;
    font-weight: 700;
}

footer p {
    color: var(--color-mid-gray);
    margin-bottom: 0;
}

/* Desktop and Mobile Display Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile Hero Styles */
.mobile-hero-image {
    width: 100%;
    height: 300px;
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
}

.mobile-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

@media screen and (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .mobile-hero-image {
        width: 100% !important;
        height: 300px !important;
        margin: 2rem auto 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .mobile-hero-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        filter: grayscale(100%) !important;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    html {
        font-size: 56.25%; /* 9px = 1rem */
    }

    .hero-content {
        max-width: 70%;
    }

    .about-content {
        gap: 4rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 50%; /* 8px = 1rem */
    }

    section {
        padding: 8rem 0;
    }
    
    .hero {
        padding-top: 8rem;
        height: auto;
        min-height: 100vh;
    }

    .hero::before {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 4rem 0 8rem;
        flex-direction: column;
        gap: 5rem;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 4.8rem;
    }
    
    .hero-text .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        display: block !important;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
    
    .hero-image-container {
        width: 100%;
        height: 300px;
        padding-bottom: 0;
        position: relative;
        overflow: hidden;
        background-color: #f0f0f0;
    }
    
    .hero-image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-shape {
        top: -15px;
        right: -15px;
        width: 100%;
        height: 100%;
        display: block;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .section-header {
        margin-bottom: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
    
    .service-icon {
        width: 5.5rem;
        height: 5.5rem;
        font-size: 2.4rem;
        margin-bottom: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .service-card p {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .testimonial-content {
        padding: 3rem 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 3rem 2rem;
    }
}

@media screen and (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .service-card {
        padding: 3rem 2.5rem;
    }
    
    .hero-image-container {
        width: 100%;
        height: 250px;
        padding-bottom: 0;
        position: relative;
        background-color: #f0f0f0;
    }
    
    .hero-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
