/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove all outlines and focus rings */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove tap highlights and selection effects */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Remove selection color */
*::selection {
    background: transparent;
}

*::-moz-selection {
    background: transparent;
}

/* Base styles for all pages */
html {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Homepage-specific styles */
.homepage html {
    overflow: hidden;
}

.homepage body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Container for the split layout - Homepage only */
.homepage .container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Section - Mindcode Studio Logo - Homepage only */
.homepage .top-section {
    height: 50vh;
    width: 100%;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 25%, #d1d5db 50%, #e5e7eb 75%, #f3f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.8s ease, transform 0.8s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    outline: none;
    border: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.homepage .top-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 25%, #9fa8da 50%, #7986cb 75%, #5c6bc0 100%);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

/* Top section hover state class (applied by JavaScript when hovering over logo) */
.homepage .top-section.logo-hover {
    transform: scale(1.01);
}

.homepage .top-section.logo-hover::before {
    opacity: 1;
}

.homepage .logo-container {
    text-align: center;
    z-index: 3;
    width: 100%;
    outline: none;
    border: none;
    box-shadow: none;
    position: relative;
}

.mindcode-logo {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #000;
    position: relative;
}

.homepage .logo-image {
    width: 50%;
    height: auto;
    max-width: 100%;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0deg) brightness(100%) contrast(100%);
    transition: all 0.8s ease;
}

.homepage .logo-image:hover {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(90%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(110%) contrast(100%);
}

.mindcode {
    font-size: 3.5rem;
    font-weight: 300;
}

.studio {
    font-size: 4rem;
    font-weight: 400;
    position: relative;
}

.studio::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -2px;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0,0,0,0.1) 50%, transparent 70%);
    transform: rotate(-2deg);
    z-index: -1;
}

/* Bottom Section - IT Logo with Tech Gradient */
.homepage .bottom-section-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.homepage .bottom-section {
    height: 50vh;
    width: 100%;
    background: linear-gradient(45deg, #6b7280 0%, #9ca3af 25%, #d1d5db 50%, #e5e7eb 75%, #f3f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.8s ease, transform 0.8s ease;
    flex-shrink: 0;
    outline: none;
    border: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.homepage .bottom-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #4b5563 0%, #6b7280 25%, #9ca3af 50%, #d1d5db 75%, #e5e7eb 100%);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

/* Hover effect when hovering over the logo affects the entire section */
.homepage .it-logo:hover {
    /* Logo hover effect */
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(90%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(110%) contrast(100%);
}

/* Section hover state class (applied by JavaScript) */
.homepage .bottom-section.logo-hover {
    transform: scale(1.01);
}

.homepage .bottom-section.logo-hover::before {
    opacity: 1;
}

.homepage .black-logo-container {
    text-align: center;
    color: white;
    z-index: 3;
    width: 100%;
    outline: none;
    border: none;
    box-shadow: none;
    position: relative;
}

.homepage .black-logo {
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s ease;
}

.homepage .black-logo:hover {
    transform: scale(1.05);
}

.homepage .it-logo {
    width: 50%;
    height: auto;
    max-width: 100%;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0deg) brightness(100%) contrast(100%);
    transition: all 0.8s ease;
}

.homepage .it-logo:hover {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(90%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(110%) contrast(100%);
}

.services-menu {
    margin-top: 2rem;
}

.services-menu h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.service-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.service-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    outline: none;
}

.service-link:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #3498db;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mindcode-logo {
        font-size: 2.5rem;
    }

    .mindcode {
        font-size: 2rem;
    }

    .studio {
        font-size: 2.5rem;
    }

    .homepage .black-logo {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .services-menu h2 {
        font-size: 1.5rem;
    }

    .service-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mindcode-logo {
        font-size: 2rem;
    }

    .mindcode {
        font-size: 1.5rem;
    }

    .studio {
        font-size: 2rem;
    }

    .homepage .black-logo {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .services-menu h2 {
        font-size: 1.2rem;
    }

    .service-link {
        font-size: 1rem;
    }
}

/* Animations removed to prevent automatic color changes */

/* Animations removed to prevent automatic color changes */