/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body.dark-mode {
    --text-dark: #f3f4f6;
    --text-light: #d1d5db;
    --bg-light: #1a2332;
    --white: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-mark {
    width: 56px;
    height: 46px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Figtree', 'Nunito', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.logo-app {
    color: #00b8cc;
}

.logo-slash {
    color: #111111;
    font-weight: 900;
    margin: 0 1px;
    font-size: 2.1rem;
    line-height: 1;
    position: relative;
    top: 1px;
}

body.dark-mode .logo-slash {
    color: #ffffff;
}

.logo-rora {
    color: #e8390a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Desktop: Show theme toggle in menu, hide hamburger and nav-right */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
    
    .nav-right {
        display: none !important;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .theme-toggle-item {
        padding: 0.5rem;
    }
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-dark);
}

.theme-toggle:hover {
    background: var(--bg-light);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.sun-icon {
    display: block;
    opacity: 1;
}

.moon-icon {
    display: none;
    opacity: 0;
    position: absolute;
}

body.dark-mode .sun-icon {
    display: none;
    opacity: 0;
}

body.dark-mode .moon-icon {
    display: block;
    opacity: 1;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1a2f4a 100%);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0a0f1a 0%, #151d2d 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

body.dark-mode .hero-title {
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

body.dark-mode .hero-subtitle {
    color: #d1d5db;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

body.dark-mode .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body.dark-mode .btn-secondary:hover {
    background: #ffffff;
    color: #0f172a;
}

.btn-block {
    width: 100%;
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.visual-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .visual-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.visual-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

body.dark-mode .visual-card h3 {
    color: #ffffff;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

body.dark-mode .section-title {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

body.dark-mode .section-subtitle {
    color: #d1d5db;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

body.dark-mode .services {
    background: #0f172a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

body.dark-mode .service-card {
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

body.dark-mode .service-card h3 {
    color: #ffffff;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

body.dark-mode .service-card p {
    color: #d1d5db;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .service-features li {
    color: #d1d5db;
}

.service-features li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
}

/* About Section */
.about {
    background: var(--white);
}

body.dark-mode .about {
    background: #0f172a;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

body.dark-mode .about-text p {
    color: #d1d5db;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

body.dark-mode .stat-number {
    color: #00e5c8;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

body.dark-mode .stat-label {
    color: #d1d5db;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

body.dark-mode .contact {
    background: #0f172a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

body.dark-mode .contact-info p {
    color: #d1d5db;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

body.dark-mode .contact-item h4 {
    color: #ffffff;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

body.dark-mode .contact-item p {
    color: #d1d5db;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

body.dark-mode .contact-form-wrapper {
    background: #1a2332;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

body.dark-mode .form-group label {
    color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Visit Section */
.visit {
    background: var(--white);
}

body.dark-mode .visit {
    background: #0f172a;
}

.visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.visit-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

body.dark-mode .visit-info h2 {
    color: #ffffff;
}

.visit-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

body.dark-mode .visit-info p {
    color: #d1d5db;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.visit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visit-icon {
    font-size: 2rem;
}

.visit-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

body.dark-mode .visit-item h4 {
    color: #ffffff;
}

.visit-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

body.dark-mode .visit-item p {
    color: #d1d5db;
}

.visit-map {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: var(--white);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.map-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.visit-map p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo .logo-mark {
    width: 56px;
    height: 46px;
}

.footer-logo .logo-text {
    font-family: 'Figtree', 'Nunito', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.footer-logo .logo-app {
    color: #00e5c8;
}

.footer-logo .logo-slash {
    color: #111111;
    font-weight: 900;
    margin: 0 1px;
    font-size: 2.1rem;
    line-height: 1;
    position: relative;
    top: 1px;
}

body.dark-mode .footer-logo .logo-slash {
    color: #111111;
}

body.dark-mode .footer-logo .logo-mark line {
    stroke: #ffffff !important;
}

.footer-logo .logo-rora {
    color: #ff6b35;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content,
    .contact-content,
    .visit-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: block;
    }
    
    /* On mobile, show theme toggle in nav-right and hide from menu */
    .theme-toggle-item {
        display: none;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .visual-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .btn-block {
        width: 100%;
    }
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .footer {
        background: #f3f4f6;
        color: #1f2937;
    }
    
    .footer-logo .logo-mark line {
        stroke: #111111 !important;
    }
    
    .footer-logo .logo-text {
        color: #1f2937;
    }
    
    .footer-description {
        color: #4b5563;
    }
    
    .footer-social a {
        background: rgba(0, 0, 0, 0.1);
        color: #1f2937;
    }
    
    .footer-social a:hover {
        background: var(--primary-color);
        color: #ffffff;
    }
    
    .footer-column h4 {
        color: #1f2937;
    }
    
    .footer-column ul li a {
        color: #4b5563;
    }
    
    .footer-column ul li a:hover {
        color: var(--primary-color);
    }
    
    .footer-bottom {
        border-top: 1px solid #e5e7eb;
        color: #4b5563;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .visit-map {
        padding: 2rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.visual-card {
    animation: fadeInUp 0.6s ease-out;
}


/* Dark Mode Logo Adjustments */
body.dark-mode .logo-mark line {
    stroke: #ffffff !important;
}

body.dark-mode .navbar {
    background: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-link {
    color: var(--text-dark);
}

body.dark-mode .nav-link:hover {
    color: var(--primary-color);
}

/* Responsive Dark Mode Button */
@media (max-width: 768px) {
    .nav-menu .nav-item:last-child {
        display: none;
    }
}
