/* Layout Styles */

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    animation: fadeIn var(--transition-slow) ease-in;
    text-align: center;
}

/* Header Section */
.header {
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInScale 0.6s ease-out 0.1s both;
}

.logo svg {
    width: 100%;
    max-width: 240px;
    height: auto;
    color: var(--color-logo);
}

/* Tagline Section */
.tagline {
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.6s ease-out 0.4s both;
}

/* Contact Section */
.contact {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.linkedin-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(66, 141, 179, 0.1);
    transform: translateY(-2px);
}

.linkedin-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.linkedin-link:active {
    transform: translateY(0);
}

.linkedin-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 1px solid var(--color-text-muted);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-base);
    z-index: 100;
    animation: fadeInScale 0.4s ease-out 0.8s both;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--color-accent);
    background-color: rgba(66, 141, 179, 0.1);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--color-text-muted);
    transition:
        fill var(--transition-base),
        transform var(--transition-base),
        opacity var(--transition-base);
    position: absolute;
}

.theme-toggle:hover svg {
    fill: var(--color-accent);
}

/* Sun icon transitions */
#sunIcon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

#sunIcon.fade-out {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Moon icon transitions */
#moonIcon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

#moonIcon.fade-in {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo svg {
        max-width: 180px;
    }

    .container {
        padding: var(--spacing-lg);
    }

    .theme-toggle {
        width: 2.5rem;
        height: 2.5rem;
        top: 1.5rem;
        right: 1.5rem;
    }

    .theme-toggle svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .linkedin-link {
        width: 2.5rem;
        height: 2.5rem;
    }

    .linkedin-link svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo svg {
        max-width: 150px;
    }

    .container {
        padding: var(--spacing-md);
    }

    .header {
        margin-bottom: var(--spacing-lg);
    }

    .tagline {
        margin-bottom: var(--spacing-lg);
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 2.25rem;
        height: 2.25rem;
    }

    .theme-toggle svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
