/* San Francisco Font Faces */
@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sanfrancisco/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sanfrancisco/SF-Pro-Display-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sanfrancisco/SF-Pro-Display-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/sanfrancisco/SF-Pro-Display-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/sanfrancisco/SF-Pro-Text-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/sanfrancisco/SF-Pro-Text-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/sanfrancisco/SF-Pro-Text-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* Reset and Base Styles */
:root {
    /* Light mode colors (default) */
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #000000;
    --border-light: #e5e5e5;
    --border-medium: #d0d0d0;
    --border-dark: #333333;
    --bg-light: #f8f8f8;
    --bg-dark: #000000;
    --transition-colors: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #666666;
    --border-color: #ffffff;
    --border-light: #2a2a2a;
    --border-medium: #3a3a3a;
    --border-dark: #cccccc;
    --bg-light: #1a1a1a;
    --bg-dark: #ffffff;
}

/* Color inversion when hovering niru image */
body:has(.hero-img:hover) {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #888888;
    --border-color: #ffffff;
    --border-light: #333333;
    --border-medium: #444444;
    --border-dark: #cccccc;
    --bg-light: #111111;
    --bg-dark: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Logo link fix for all pages */
.header a,
.header a:link,
.header a:visited,
.header a:active,
.logo a,
.logo a:link,
.logo a:visited,
.logo a:active,
.logo h1 a,
.logo h1 a:link,
.logo h1 a:visited,
.logo h1 a:active {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.logo a:hover,
.logo h1 a:hover {
    opacity: 0.8;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition-colors);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-colors);
}

.header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 12px 20px;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: relative;
    background: none;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    width: 56px;
    height: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.dark-mode-toggle:hover {
    border-color: var(--text-secondary);
}

.dark-mode-toggle-inner {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

[data-theme="dark"] .dark-mode-toggle-inner {
    transform: translateX(26px);
}

.dark-mode-toggle-inner::after {
    content: "☀️";
}

[data-theme="dark"] .dark-mode-toggle-inner::after {
    content: "🌙";
}

.logo h1 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.5px;
    transition: var(--transition-colors);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    justify-content: center;
}

.nav a {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.5s ease;
}

.nav a:hover {
    opacity: 0.7;
}

/* Main Content */
.main {
    margin-top: 60px;
    background-color: var(--bg-color);
    transition: var(--transition-colors);
}

/* Smooth body transition for theme changes */
body {
    transition: opacity 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    padding: 120px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 500px;
}

.hero-text {
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cta {
    text-align: center;
    margin-top: 40px;
    grid-column: 1 / -1;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    animation: slideDownFadeIn 1.2s ease-out;
    transition: transform 0.3s ease, filter 0.3s ease;
    content: url('../images/niru-clean.png');
}

/* Desktop-only hover effect */
@media (hover: hover) and (min-width: 769px) {
    .hero-img:hover {
        transform: translateY(-8px) scale(1.05);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
        cursor: pointer;
        content: url('../images/niru-clean_2.png');
    }
}

.hero-title {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.1;
    transition: var(--transition-colors);
}

.hero-subtitle {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 21px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition-colors);
}

.cta-button {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 500;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease, background-color 0.5s ease, color 0.5s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Dynamic Word Styles */
.dynamic-word {
    background-color: #2596be;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 0px;
    display: inline-block;
    font-weight: 600;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 16px;
    cursor: pointer;
}

@media (hover: hover) and (min-width: 769px) {
    .dynamic-word:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 20px rgba(37, 150, 190, 0.4);
        background-color: #1e7a9e;
    }
}

.dynamic-word .text {
    transition: opacity 0.2s ease;
}

.dynamic-word .text.fade-out {
    opacity: 0;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-color);
    transition: var(--transition-colors);
}

.section-title {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: -1px;
    transition: var(--transition-colors);
}

.services-grid {
    position: relative;
    overflow: hidden;
    margin-top: 64px;
}

.services-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 400%; /* 4 slides */
}

.service-slide {
    width: 25%; /* Each slide takes 1/4 of container */
    flex-shrink: 0;
    padding: 0 20px;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 400px;
    background-color: var(--bg-color);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    transition: var(--transition-colors), transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px;
}

.service-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.service-left {
    text-align: left;
}

.service-logo {
    margin-bottom: 24px;
    color: var(--text-color);
    transition: var(--transition-colors);
}

.service-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: var(--transition-colors);
    background-color: var(--bg-dark);
    border-radius: 8px;
    padding: 8px;
}

.service-left h3 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    transition: var(--transition-colors);
}

.service-left p {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    transition: var(--transition-colors);
}

.fiverr-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1dbf73;
    color: #ffffff;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fiverr-button:hover {
    background-color: #19a463;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(29, 191, 115, 0.3);
}

.fiverr-logo {
    height: 20px;
    width: auto;
    margin-left: 4px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Makes any color image white */
}

.fiverr-button:hover .fiverr-logo {
    transform: scale(1.1);
}

.service-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-media {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-media:hover {
    transform: translateY(-4px);
}

.service-image, .service-video {
    width: 100%;
    height: auto;
    display: block;
}

.services-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slide-dot.active {
    background-color: var(--text-color);
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 18px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.slide-arrow.prev {
    left: -60px;
}

.slide-arrow.next {
    right: -60px;
}

.slide-arrow:hover {
    opacity: 0.8;
}

@media (hover: hover) and (min-width: 769px) {
    .services-grid:hover .slide-arrow {
        opacity: 1;
    }
    
    .slide-arrow {
        opacity: 0;
    }
}

.service-card {
    background-color: var(--bg-color);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease, background-color 0.5s ease, border-color 0.5s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
}

.service-icon {
    margin-bottom: 24px;
    color: var(--text-color);
    transition: var(--transition-colors);
}

.service-card h3 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    transition: var(--transition-colors);
}

.service-card p {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--transition-colors);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-light);
    transition: var(--transition-colors);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 64px;
    line-height: 1.6;
    transition: var(--transition-colors);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 64px;
}

.feature {
    text-align: center;
}

.feature h4 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    transition: var(--transition-colors);
}

.feature p {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--transition-colors);
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    color: var(--bg-color);
    padding: 80px 0 32px;
    transition: var(--transition-colors);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--bg-color);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    transition: var(--transition-colors);
}

.footer-brand p {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-tertiary);
    line-height: 1.5;
    transition: var(--transition-colors);
}

.footer-links h4 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--bg-color);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    transition: var(--transition-colors);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease, color 0.5s ease;
}

.footer-links a:hover {
    color: var(--bg-color);
}

.footer-contact h4 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--bg-color);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    transition: var(--transition-colors);
}

.footer-contact p {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    transition: var(--transition-colors);
}

.contact-button {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--bg-dark);
    font-family: 'SF Pro Text', sans-serif;
    font-size: 17px;
    font-weight: 500;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease, background-color 0.5s ease, color 0.5s ease;
}

.contact-button:hover {
    background-color: var(--border-light);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 32px;
    text-align: center;
    transition: var(--transition-colors);
}

.footer-bottom p {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition-colors);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .nav {
        grid-column: 1 / -1;
        order: 1;
    }
    
    .dark-mode-toggle {
        order: 0;
    }
    
    .nav ul {
        gap: 24px;
        justify-content: center;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-image {
        display: none; /* Hide niru images on mobile */
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 24px;
        margin: 10px;
    }
    
    .service-left {
        text-align: center;
    }
    
    .service-left h3 {
        font-size: 28px;
    }
    
    .service-media {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .footer {
        padding: 60px 0 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
}

/* Smooth animations */
@keyframes slideDownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    65% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }