/* Google Sans Font Import */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;600;700&display=swap');

/* Custom Styles for Font Fallback */
body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scroll Offset for Fixed Nav */
html {
    scroll-padding-top: 80px;
}

/* Nav Link Active State */
.nav-link.active {
    color: #1f2937;
    font-weight: 600;
}

/* Mobile Menu Toggle Animation */
#menuToggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active span:nth-child(2) {
    opacity: 0;
}

#menuToggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Active State */
#mobileMenu.active {
    max-height: 400px;
    padding-bottom: 1rem;
}

/* Section Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav Shadow on Scroll */
#navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Custom Selection Color */
::selection {
    background-color: #4A90E2;
    color: white;
}

::-moz-selection {
    background-color: #4A90E2;
    color: white;
}

/* Smooth Transitions for Interactive Elements */
a, button {
    transition: all 0.3s ease;
}

/* Hover Effects for Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4A90E2;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Rounded Box Hover Effect */
section > div > div.rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section > div > div.rounded-3xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Focus Styles for Accessibility */
a:focus, button:focus {
    /* outline: 2px solid #4A90E2; */
    outline-offset: 2px;
}

/* Prevent Page Flash on Load */
body {
    visibility: visible !important;
}

.profile-photo {
    margin: 0 auto 40px;
    width: 180px;
    height: 180px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #d0d0d0 40%, transparent 60%);
    border-radius: 50%;
}

.photo-placeholder::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 80px;
    background: radial-gradient(ellipse, #d0d0d0 30%, transparent 60%);
    border-radius: 50% 50% 0 0;
}