* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

:root {
    /* color pallete */
    --primary: #0288D1;
    --secondary: #01579B;
    --very-light: #cce7f5;
    --light:#80c3e8;
    --dark:#01517d;
    --very-dark: #003653;
    /* fonts */
    --primary-font: #2c3e50;
    --secondary-font: #3d5770;
    --dark-font: #616161;
    --light-font: #9E9E9E;
    /* backgrounds */
    --background: #FAFAFA;
    --secondary-background: #E0E0E0;

    /* other elememts */
    --dark-border: rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--dark-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-font);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Improved Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 80px;
    padding-right: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18), 0 1.5px 6px rgba(52, 152, 219, 0.08);
    border: 1px solid #e3e9f0;
    border-radius: 18px;
    padding: 1.7rem 1.5rem 1.2rem 1.5rem;
    min-width: 240px;
    transform: translateY(-16px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-menu.active .mobile-nav-content {
    transform: translateY(0) scale(1);
}

.mobile-nav-menu ul {
    list-style: none;
    text-align: right;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-nav-menu li {
    margin: 0.7rem 0;
    position: relative;
}

.mobile-nav-menu a {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.6rem 0.2rem 0.6rem 0;
    border-radius: 8px;
    position: relative;
}

.mobile-nav-menu a:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.07);
    transform: translateX(-4px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: 
        url('../images/buildings-4324792.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.4) 0%, rgba(25, 32, 72, 0.5) 50%, rgba(21, 101, 192, 0.3) 100%);
    z-index: 1;
    animation: overlayShift 12s ease-in-out infinite alternate;
}

@keyframes overlayShift {
    0% { opacity: 0.6; }
    100% { opacity: 0.8; }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/buildings-4324792.jpg') center/cover no-repeat;
    animation: twinkle 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.chicago-element {
    position: absolute;
    top: 15%;
    right: 8%;
    font-size: 6rem;
    opacity: 0.15;
    animation: windyCity 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes windyCity {
    0%, 100% { transform: rotate(-2deg) translateY(0px); }
    50% { transform: rotate(2deg) translateY(-10px); }
}

.hero-content {
    z-index: 3;
    position: relative;
    animation: fadeInUp 1s ease-out;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0px 0px 10px rgba(0, 0, 0, 0.7),
        0px 0px 20px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 1),
        6px 6px 10px rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0px 0px 8px rgba(0, 0, 0, 0.6);
    color: #f8f9fa;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    animation: bounce 2s infinite;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    font-size: 2rem;
}

/* Sections */
.section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-font);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-font);
}

.about-quote {
    font-style: italic;
    color:var(--light-font);
    margin-top: 1rem;
    text-align: right;
    align-self: flex-end;
}

/* What's New Section */
.whats-new-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px 5px;
}

.whats-new-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.news-tile {
    flex: 0 0 calc((100% - 4rem) / 3);
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.news-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-tile-header {
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.future {
    background: linear-gradient(135deg, var(--primary) 0%, var(--very-dark) 100%);
}

.current {
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 100%);
}

.past {
    background: linear-gradient(135deg, var(--very-light) 0%, var(--light) 100%);
}

.news-tile-header::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;
}

.news-tile:hover .news-tile-header::before {
    left: 100%;
}

.news-date {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.news-tile-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 2px solid #3498db;
    border-radius: 25px;
    align-self: center;
}

.news-link:hover {
    background: #3498db;
    color: white;
    transform: translateX(5px);
}

.link-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid #3498db;
    font-size: 0.9rem;
    color: #666;
}

.link-preview-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Navigation Controls */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.nav-button:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-button:disabled:hover {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-prev {
    left: 0;
}

.nav-next {
    right: 0;
}

.nav-button svg {
    width: 20px;
    height: 20px;
    fill: #2c3e50;
}

/* Indicators */
.news-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Resume Section */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.resume-category h3 {
    color: var(--primary-font);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.resume-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.resume-item h4 {
    color: var(--secondary-font);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.resume-item .company {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.resume-item .date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.resume-item ul {
    list-style: none;
    padding-left: 0;
}

.resume-item li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
    color: #555;
}

.resume-item li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3498db;
}

/* Projects Section */
.dark-section {
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link.primary {
    background: #3498db;
    color: white;
}

.project-link.primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.project-link.secondary {
    border: 2px solid #3498db;
    color: #3498db;
}

.project-link.secondary:hover {
    background: #3498db;
    color: white;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.contact-email {
    font-size: 2rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #2980b9;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* Center about-image on mobile */
    .about-image {
        margin-left: auto;
        margin-right: auto;
    }

    .resume-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Fixed mobile news styles */
    .whats-new-container {
        padding: 0 10px 5px;
    }

    .whats-new-track {
        gap: 1rem;
    }

    .news-tile {
        flex: 0 0 calc(100% - 2rem);
        margin: 0 1rem;
    }

    .nav-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .whats-new-container {
        padding: 0 0 5px;
    }

    .news-tile {
        flex: 0 0 100%;
        margin: 0;
    }

    .whats-new-track {
        gap: 0;
    }

    .news-tile-content {
        padding: 1.5rem;
    }
}