/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors */
    --primary-color: #ef7c00;
    --secondary-color: #175cff;
    --accent-color: #ff8c42;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #e9ecef;
    --shadow: rgba(23, 92, 255, 0.15);
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #fff8f0 100%);
    --gradient-primary: linear-gradient(135deg, #ef7c00 0%, #ff8c42 100%);
    --gradient-secondary: linear-gradient(135deg, #175cff 0%, #4285ff 100%);
}

[data-theme="dark"] {
    /* Dark mode colors */
    --primary-color: #ff8c42;
    --secondary-color: #4285ff;
    --accent-color: #ef7c00;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --background: #0d1117;
    --surface: #161b22;
    --border: #30363d;
    --shadow: rgba(239, 124, 0, 0.2);
    --hero-bg: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a0f0a 100%);
    --gradient-primary: linear-gradient(135deg, #ff8c42 0%, #ef7c00 100%);
    --gradient-secondary: linear-gradient(135deg, #4285ff 0%, #175cff 100%);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.nav-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(239, 124, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(239, 124, 0, 0.25);
}

.theme-toggle:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
}

.theme-icon {
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .theme-icon {
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Theme icon states */
.theme-toggle[data-theme="light"] .theme-icon::after {
    content: '☀️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.theme-toggle[data-theme="dark"] .theme-icon::after {
    content: '🌙';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.theme-toggle .theme-icon::before {
    content: 'LD';
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    position: relative;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: 2px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--background);
    box-shadow: 0 4px 15px rgba(239, 124, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 124, 0, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 15px rgba(23, 92, 255, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(23, 92, 255, 0.4);
    background: linear-gradient(135deg, #4285ff 0%, #175cff 100%);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 124, 0, 0.1) 0%, rgba(23, 92, 255, 0.1) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.hero-visual:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(239, 124, 0, 0.2);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
    animation: subtle-pulse 4s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

[data-theme="dark"] .hero-image {
    filter: brightness(0.9) contrast(1.2) saturate(0.9);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(239, 124, 0, 0.05) 100%);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.development-icon {
    background: var(--gradient-primary);
}

.development-icon::after {
    content: 'DEV';
    font-size: 1.5rem;
    font-weight: bold;
    filter: brightness(0) invert(1);
}

.security-icon {
    background: var(--gradient-secondary);
}

.security-icon::after {
    content: 'SEC';
    font-size: 1.5rem;
    font-weight: bold;
    filter: brightness(0) invert(1);
}

.realestate-icon {
    background: var(--gradient-secondary);
}

.realestate-icon::after {
    content: 'RE';
    font-size: 1.5rem;
    font-weight: bold;
    filter: brightness(0) invert(1);
}

.startup-icon {
    background: var(--gradient-primary);
}

.startup-icon::after {
    content: 'SI';
    font-size: 1.5rem;
    font-weight: bold;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--text-primary);
}

/* Investments Section */
.investments-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.investment-category {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.investment-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow);
}

.investment-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.investment-category p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.investment-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight {
    background: var(--gradient-primary);
    color: var(--background);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(239, 124, 0, 0.3);
    transition: all 0.3s ease;
}

.highlight:nth-child(2n) {
    background: var(--gradient-secondary);
    box-shadow: 0 2px 8px rgba(23, 92, 255, 0.3);
}

.highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 124, 0, 0.4);
}

.highlight:nth-child(2n):hover {
    box-shadow: 0 4px 12px rgba(23, 92, 255, 0.4);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--background);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-secondary);
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--background);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: 250px;
        margin: 1rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        flex-direction: row;
        justify-content: space-around;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-links {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle::before {
        width: 16px;
        height: 16px;
    }

    .theme-toggle[data-theme="light"] .theme-icon::after,
    .theme-toggle[data-theme="dark"] .theme-icon::after {
        font-size: 1.2rem;
    }

    .theme-toggle:hover {
        transform: scale(1.05);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .investments-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        flex-direction: column;
    }

    .investment-highlights {
        justify-content: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Background patterns */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(239, 124, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(23, 92, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

section:nth-child(even) {
    background: linear-gradient(135deg, var(--background) 0%, rgba(239, 124, 0, 0.02) 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Utility Classes for Modularity */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

.hover-lift .feature-item:hover,
.hover-lift .hero-visual:hover {
    transform: translateY(-5px);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px var(--shadow);
}

.border-hover {
    transition: border-color 0.3s ease;
}

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

.bg-gradient-hover {
    transition: background 0.3s ease;
}

.bg-gradient-hover:hover {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(239, 124, 0, 0.05) 100%);
}

.highlight.hover-lift:hover {
    transform: translateY(-2px);
}
