/* Basic Reset & Body Styles */
html, body {
    height: 100%; /* Ensure full height for no scrolling */
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column; /* Allow content and footer to stack */
    justify-content: space-between; /* Push footer to bottom */
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Variables */
:root {
    --bg-color-light: #f3f4f6; /* base-200 */
    --card-bg-light: #ffffff; /* base-100 */
    --text-color-light: #1f2937; /* base-content */
    --text-muted-light: #6b7280; /* base-content/70 */
    --primary-color-light: #3b82f6; /* primary */
    --shadow-color-light: rgba(0, 0, 0, 0.1);
}

.dark-theme {
    --bg-color-dark: #1a202c; /* dracula bg */
    --card-bg-dark: #2d3748; /* dracula card */
    --text-color-dark: #e2e8f0; /* dracula text */
    --text-muted-dark: #a0aec0; /* dracula text/70 */
    --primary-color-dark: #bd93f9; /* dracula primary */
    --shadow-color-dark: rgba(0, 0, 0, 0.3);
}

/* Apply Theme */
body {
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
}

body.dark-theme {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
}

/* Container for centering main content */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1; /* Allow main content to take available space */
    padding: 1rem;
    box-sizing: border-box;
    position: relative; /* For absolute positioning of theme toggle */
}

/* Card Styles */
.card {
    background-color: var(--card-bg-light);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px var(--shadow-color-light), 0 8px 10px -6px var(--shadow-color-light);
    max-width: 48rem; /* Equivalent to max-w-2xl */
    width: 100%;
    padding: 3rem; /* Increased padding */
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .card {
    background-color: var(--card-bg-dark);
    box-shadow: 0 20px 25px -5px var(--shadow-color-dark), 0 8px 10px -6px var(--shadow-color-dark);
}

/* Text Styles */
h1 {
    font-size: 3.5rem; /* Larger font for impact */
    font-weight: 800;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

body.dark-theme h1 {
    color: var(--text-color-dark);
}

p {
    font-size: 1.25rem; /* Slightly larger for readability */
    color: var(--text-muted-light);
    margin-bottom: 2.5rem; /* More space below paragraph */
}

body.dark-theme p {
    color: var(--text-muted-dark);
}

/* Icon Styles */
.icon {
    width: 8rem; /* Larger wrench icon */
    height: 8rem;
    color: var(--primary-color-light);
    opacity: 0.9;
    stroke-width: 1.5;
    margin: 0 auto;
    display: block;
}

body.dark-theme .icon {
    color: var(--primary-color-dark);
}

.mail-icon {
    width: 2rem; /* Slightly larger mail icon */
    height: 2rem;
    vertical-align: middle;
}

/* Contact Button */
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem; /* Make it a fixed size for circle */
    height: 4rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50%; /* Make it circular */
    border: 2px solid var(--primary-color-light);
    background-color: transparent;
    color: var(--primary-color-light);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-button:hover {
    background-color: var(--primary-color-light);
    color: var(--card-bg-light); /* Text color changes on hover */
    transform: translateY(-0.25rem); /* hover:-translate-y-1 */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

body.dark-theme .contact-button {
    border-color: var(--primary-color-dark);
    color: var(--primary-color-dark);
}

body.dark-theme .contact-button:hover {
    background-color: var(--primary-color-dark);
    color: var(--card-bg-dark);
}

/* Theme Toggle Button */
.theme-toggle-button {
    position: absolute;
    top: 1.5rem; /* Slightly more space from top */
    right: 1.5rem; /* Slightly more space from right */
    background-color: var(--card-bg-light);
    border: none;
    border-radius: 50%;
    width: 3.5rem; /* Slightly larger toggle button */
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .theme-toggle-button {
    background-color: var(--card-bg-dark);
}

.theme-toggle-button .sun-icon,
.theme-toggle-button .moon-icon {
    width: 1.8rem; /* Slightly larger icons inside toggle */
    height: 1.8rem;
    color: var(--text-color-light);
    transition: opacity 0.3s ease, color 0.3s ease;
}

body.dark-theme .theme-toggle-button .sun-icon,
body.dark-theme .theme-toggle-button .moon-icon {
    color: var(--text-color-dark);
}

.theme-toggle-button .sun-icon {
    display: block;
}

.dark-theme .theme-toggle-button .sun-icon {
    display: none;
}

.theme-toggle-button .moon-icon {
    display: none;
}

.dark-theme .theme-toggle-button .moon-icon {
    display: block;
}

/* Footer Styles */
.footer {
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem; /* text-sm */
    color: var(--text-muted-light);
    background-color: transparent; /* Ensure it doesn't cover main content */
    transition: color 0.3s ease;
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

body.dark-theme .footer {
    color: var(--text-muted-dark);
}

.footer p {
    margin: 0; /* Remove default paragraph margin */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.public-security-icon {
    width: 1.2rem; /* Size of the shield icon */
    height: 1.2rem;
    color: var(--text-muted-light); /* Match footer text color */
    transition: color 0.3s ease;
}

body.dark-theme .public-security-icon {
    color: var(--text-muted-dark);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        padding: 2rem;
    }
    h1 {
        font-size: 2.5rem;
    }
    p {
        font-size: 1rem;
    }
    .icon {
        width: 6rem;
        height: 6rem;
    }
    .contact-button {
        width: 3.5rem;
        height: 3.5rem;
    }
    .mail-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .theme-toggle-button {
        width: 3rem;
        height: 3rem;
        top: 1rem;
        right: 1rem;
    }
    .theme-toggle-button .sun-icon,
    .theme-toggle-button .moon-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .footer {
        padding: 0.5rem;
    }
    .public-security-icon {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    p {
        font-size: 0.9rem;
    }
    .icon {
        width: 5rem;
        height: 5rem;
    }
}
