main {
    margin-top: 6em;
}

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

/* Hero Section */
.hero {
    background: #2c3e50 url('https://coolbackgrounds.imgix.net/39sOStld2OCyNn3HmCpqco/21d339122a7cb417c83e6ebdc347ea5c/sea-edge-79ab30e2.png?w=3840&q=60&auto=format,compress') center/cover no-repeat;
    color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0 0 0.5rem 0;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
    font-family: 'Merriweather', serif;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: rgba(255, 255, 255, 0.92);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.cta-button.secondary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #764ba2;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 900;
    font-family: 'Merriweather', serif;
    letter-spacing: -1px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-col);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-col);
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    color: var(--text-col);
    padding-left: 0.5rem;
}

.contact-info a {
    color: var(--accent-col);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Experience Section */
.experience {
    padding: 5rem 0;
    background: white;
}

.experience h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 900;
    font-family: 'Merriweather', serif;
    letter-spacing: -1px;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(8px);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-align: right;
    padding-top: 0.25rem;
}

.timeline-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-col);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.timeline-content h4 {
    margin: 0 0 1.25rem 0;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.5px;
}

.timeline-content ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-col);
}

.timeline-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Education Section */
.education {
    padding: 5rem 0;
    background: #2c3e50 url('https://images.ctfassets.net/nnkxuzam4k38/219VUMa1SOxASKqCE2OgT4/be1c810344587bd7f6f203337d23602a/ranger-4df6c1b6.png') center/cover no-repeat;
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.education h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 900;
    font-family: 'Merriweather', serif;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.education-item {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.education-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.education-content h3 {
    font-size: 1.75rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-col);
    font-weight: 600;
}

.education-content h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
}

.education-dates {
    color: var(--accent-col);
    font-weight: 600;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: white;
}

.projects h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 900;
    font-family: 'Merriweather', serif;
    letter-spacing: -1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-col);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.2);
}

.project-card h3 {
    margin: 0 0 1.25rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.project-card p {
    color: var(--text-col);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.project-tech {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: rgba(44, 62, 80, 0.08);
    border-radius: 8px;
    display: inline-block;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.5px;
}

.project-link {
    color: var(--accent-col);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.project-link:hover {
    color: var(--accent-dark);
    transform: translateX(4px);
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    background: #f8f9fa;
}

.skills h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 900;
    font-family: 'Merriweather', serif;
    letter-spacing: -1px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.skill-category h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-col);
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--accent-col);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content h2 {
        font-size: 1.35rem;
    }

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

    .hero {
        padding: 4rem 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-date {
        text-align: left;
        padding-top: 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }

    .about h2,
    .experience h2,
    .education h2,
    .projects h2,
    .skills h2 {
        font-size: 2.25rem;
    }
}

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

    .hero-content h2 {
        font-size: 1.15rem;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .about h2,
    .experience h2,
    .education h2,
    .projects h2,
    .skills h2 {
        font-size: 2rem;
    }

    main {
        margin-top: 5em;
    }
}

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

/* Section spacing */
section {
    scroll-margin-top: 6rem;
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-col);
    outline-offset: 2px;
}
