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

:root {
    --primary-color: #0052cc;
    /* Deeper Corporate Blue */
    --primary-dark: #0041a3;
    --secondary-color: #0d9488;
    --text-primary: #1a202c;
    /* Darker Text */
    --text-secondary: #4a5568;
    --text-light: #718096;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    /* Lighter Alt Background */
    --border-color: #dee2e6;
    --shadow: 0 1px 3px rgba(0, 0, 0, .04);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .08);
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 214, 160, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: none;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.nav-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.nav-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-links a:hover {
    background: var(--background-alt);
    color: var(--primary-color);
    transform: none;
}

.nav-links a span {
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-highlight {
    background: var(--background-fun);
    position: relative;
}

.section-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,0 100,30 100,70 0,100" fill="rgba(255,255,255,0.05)"/></svg>');
    pointer-events: none;
}

.section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    position: relative;
    animation: none;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
}

@keyframes headingGlow {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--background);
    padding-top: 6rem;
}

/* Remove playful animated background */
.hero::before {
    display: none
}

/* Neutral headline & subtitle */
.hero-text h1 {
    color: var(--text-primary);
    text-shadow: none;
    animation: none;
}

.hero-subtitle {
    color: var(--primary-color);
    text-shadow: none;
    animation: none;
}

.hero-description {
    color: var(--text-secondary);
    animation: none;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: none;
    animation: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: none;
    animation: none;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: none;
    animation: none;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color .2s ease, color .2s ease;
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    animation: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: none;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: none;
}

@keyframes slideInRight {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-fun);
    animation: none;
    border: 5px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: none;
    border-radius: 50%;
    display: block;
}

@keyframes profileFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes profilePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Company Section */
.company-content {
    max-width: 1000px;
    margin: 0 auto;
}

.company-info h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.company-info>p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.company-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.feature h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.company-link {
    text-align: center;
}

/* Experience Section */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.company {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.period {
    color: var(--text-light);
    font-size: 0.9rem;
}

.experience-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Apps Section */
.apps-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 1rem;
}

.app-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 150px;
}

.app-icon-item:hover {
    transform: none;
}

.app-icon-circle {
    width: 150px;
    height: 150px;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}

.app-icon-item:hover .app-icon-circle {
    transform: scale(1.05);
    /* very subtle zoom */
    box-shadow: var(--shadow-lg);
}

.app-icon-item:hover .app-icon-img {
    transform: none;
    filter: none;
}

.app-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 150px;
    line-height: 1.3;
    text-align: center;
}

.apps-link {
    text-align: center;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: box-shadow .2s ease, transform .2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    /* Keep text color consistent */
}

.contact-link:hover .contact-icon,
.contact-link:hover span {
    position: relative;
    z-index: 1;
}

.contact-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-meta {
        align-items: flex-start;
        text-align: left;
    }

    .profile-placeholder {
        width: 250px;
        height: 250px;
    }

    .profile-img {
        border-radius: 50%;
        object-position: center center;
    }

    .company-features {
        grid-template-columns: 1fr;
    }

    .apps-grid {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow-x: visible;
    }

    .app-icon-circle {
        width: 100px;
        height: 100px;
        border-radius: 22px;
        margin-bottom: 0.75rem;
    }

    .app-icon-img {
        border-radius: 22px;
    }

    .app-icon-item {
        min-width: 100px;
    }

    .app-name {
        font-size: 0.9rem;
        max-width: 100px;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .profile-placeholder {
        width: 200px;
        height: 200px;
    }

    .profile-img {
        border-radius: 50%;
        object-position: center center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text,
.hero-image {
    animation: fadeInUp 0.6s ease-out forwards;
}

.section {
    animation: fadeInUp 0.8s ease-out forwards;
}