* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: #EFEFEF;
    position: relative;
    overflow: hidden;
    padding: 120px 0 0;
}

/* Navigation Bar - Floating Island Style */
.navbar {
    position: fixed;
    top: 30px;
    /* Floating down from the top */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    /* Responsive width */
    max-width: 1400px;
    /* Maximum width matching content */
    z-index: 1000;
    padding: 0;
    /* Remove padding from wrapper, handled by container */
    background: transparent;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Add padding top to body or hero to compensate for fixed header if needed, 
   but since hero is full height, we just need to make sure content isn't hidden */

/* Add scroll margin to sections so the title isn't hidden behind the fixed header */
#about,
#portfolio,
#contact {
    scroll-margin-top: 20px;
    /* Reduced to bring content very high up */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(38, 38, 38, 0.85);
    /* Semi-transparent dark background */
    backdrop-filter: blur(12px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    /* Full capsule shape */
    padding: 16px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
    /* Required for transform to work */
    letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    transform: scale(1.1);
    /* Slight zoom */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px rgba(255, 255, 255, 0.4);
    /* Glow effect */
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icons a {
    color: #999;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: #fff;
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

/* Text Content */
.text-content {
    background: #EA2F2B;
    border-radius: 40px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

/* Radial Gradient inside text box - larger on top-right */
.text-content::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Radial Gradient inside text box - smaller on bottom-left */
.text-content::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 35%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.text-content h1 {
    font-size: 72px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.text-content p {
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    max-width: 480px;
}

/* Image Container */
.image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.profile-image {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
    border-radius: 40px;
    overflow: hidden;
    background: #c4c4c4;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.download-cv {
    position: absolute;
    bottom: 8px;
    right: 28px;
    /* Moved slightly left */
    background: #EFEFEF;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    /* Increased size */
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    /* Added for anchor tag usage */
}

.download-cv:hover {
    background: #EA2F2B;
    color: #ffffff;
}

.download-cv svg {
    width: 16px;
    height: 16px;
}

/* Statistics Section */
.stats-section {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 60px 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-number {
    font-size: 36px;
    font-weight: 600;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.4;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Portfolio Section */
.portfolio-section {
    background: #EFEFEF;
    padding: 80px 60px;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-label {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #999999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    font-family: 'Inter', sans-serif;
}

.portfolio-title {
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 60px 0;
    font-family: 'Inter', sans-serif;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    background: #EFEFEF;
    padding: 0 60px 80px;
}

.contact-card {
    max-width: 1400px;
    margin: 0 auto;
    background: #EA2F2B;
    border-radius: 40px;
    padding: 100px 80px 60px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Radial Gradients for Contact Section */
.contact-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 35%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.contact-header {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

.contact-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.9;
}

.contact-title {
    font-size: 64px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 32px;
}

.contact-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
}

/* Contact Form */
.contact-form {
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}

.form-left,
.form-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-input,
.form-textarea {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus,
.form-textarea:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.form-textarea {
    height: 140px;
    resize: none;
}

.submit-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: #000;
}

.contact-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.contact-info-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.social-links-bottom {
    display: flex;
    gap: 24px;
}

.social-links-bottom a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links-bottom a:hover {
    opacity: 1;
}

/* Bottom Navigation Bar */
.bottom-nav-wrapper {
    padding: 0 60px 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.bottom-navbar {
    flex: 1;
    background: #1a1a1a;
    border-radius: 50px;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bottom-logo img {
    height: 24px;
    width: auto;
}

.bottom-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.bottom-links li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bottom-links li a:hover {
    color: #fff;
}

.scroll-top {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #D4FF6A;
    /* Using the green accent from brand guidelines/references if implied, or sticking to white/brand color. Reference shows light purple? I'll use a light color or consistent accent */
    background: #D8D8F6;
    /* Looks like light lavender in reference, or #E0E0E0. Let's use a light accent */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #1a1a1a;
}

.scroll-top:hover {
    transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        gap: 40px;
        padding: 60px 40px 40px;
    }

    .text-content h1 {
        font-size: 60px;
    }

    .text-content {
        padding: 60px 50px;
    }

    .portfolio-section {
        padding: 60px 40px;
    }

    .portfolio-title {
        font-size: 40px;
        margin-bottom: 50px;
    }

    .portfolio-grid {
        gap: 25px;
    }
}

@media (max-width: 968px) {
    .navbar {
        padding: 20px 30px;
    }

    .nav-container {
        padding: 14px 24px;
    }

    .nav-links {
        gap: 32px;
    }

    .nav-links li a {
        font-size: 14px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .text-content h1 {
        font-size: 56px;
    }

    .image-container {
        align-items: center;
    }

    .profile-image {
        max-width: 100%;
    }

    .stats-section {
        gap: 60px;
        padding: 40px 30px 60px;
    }

    .portfolio-section {
        padding: 50px 30px;
    }

    .portfolio-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-section {
        padding: 0 30px 60px;
    }

    .contact-card {
        padding: 60px 40px;
    }

    .form-layout {
        gap: 30px;
        align-items: flex-start;
    }

    .contact-title {
        font-size: 48px;
    }

    .bottom-nav-wrapper {
        padding: 0 30px 30px;
        flex-direction: column-reverse;
    }

    .bottom-navbar {
        width: 100%;
        padding: 16px 24px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links li a {
        font-size: 13px;
    }

    .text-content {
        padding: 50px 40px;
        border-radius: 30px;
    }

    .text-content h1 {
        font-size: 48px;
        margin-bottom: 24px;
    }

    .text-content p {
        font-size: 16px;
    }

    .profile-image {
        border-radius: 30px;
    }

    .stats-section {
        flex-direction: column;
        gap: 40px;
        padding: 40px 30px 60px;
    }

    .stat-circle {
        width: 80px;
        height: 80px;
    }

    .stat-number {
        font-size: 28px;
    }

    .portfolio-section {
        padding: 40px 20px;
    }

    .portfolio-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .contact-section {
        padding: 0 20px 40px;
    }

    .contact-card {
        padding: 50px 30px;
        border-radius: 30px;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-description {
        font-size: 16px;
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-footer {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .bottom-navbar {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .submit-btn {
        width: 100%;
    }

    .scroll-top {
        display: none;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for multiple items like portfolio cards */
.portfolio-card {
    transition-delay: 0.1s;
}

.portfolio-card:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-card:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-item {
    transition-delay: 0.1s;
}

.stat-item:nth-child(2) {
    transition-delay: 0.2s;
}

.stat-item:nth-child(3) {
    transition-delay: 0.3s;
}