/* Global Styles */
:root {
    --bg-color: #0a192f;
    --text-color: #8892b0;
    --heading-color: #ccd6f6;
    --accent-color: #64ffda;
    --card-bg: #112240;
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 32px;
    color: var(--heading-color);
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background-color: #233554;
    margin-left: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--accent-color);
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--heading-color);
    font-size: 14px;
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Added padding for fixed header */
}

.hero-content {
    display: flex;
    align-items: flex-end;
    /* Align to bottom so name aligns with buttons */
    justify-content: space-between;
    gap: 50px;
    padding-top: 40px;
    padding-bottom: 40px;
    /* Add space at bottom */
}

.hero-text {
    max-width: 600px;
    padding-top: 20px;
    /* Fine-tune alignment with image */
}

.hero-image-container {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(-16deg);
    }

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-title {
    font-size: 50px;
    /* Reduced to fit better under image */
    font-weight: 900;
    margin-bottom: 0;
    /* Remove bottom margin for alignment */
    margin-top: 30px;
    /* Space from image */
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
    /* Ensure tight line height */

    /* Gradient Text */
    background: linear-gradient(135deg, #e0e6ed 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Shadow for depth */
    text-shadow: 4px 4px 0px rgba(100, 255, 218, 0.1);

    /* Animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 48px;
    /* Bigger size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;

    /* Stylish Gradient for Subtitle */
    background: linear-gradient(to right, var(--accent-color), var(--heading-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    /* Delay */
}

.hero-description {
    font-size: 20px;
    max-width: 100%;
    /* Take whole line */
    margin-top: 20px;
    margin-bottom: 50px;
    color: var(--text-color);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    /* Delay */
}

.hero-image {
    width: 385px;
    /* Slightly larger */
    height: 385px;
    margin-left: 30px;
    margin-top: -30px;
    object-fit: cover;
    object-position: center 5%;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    /* Thicker border */
    box-shadow: 0 20px 50px -10px rgba(100, 255, 218, 0.3);
    /* Glowing shadow */
    transition: var(--transition);

    /* Floating Animation */
    animation: float 6s ease-in-out infinite;
}

.hero-image:hover {
    transform: rotate(-25deg) scale(1.1);
    border-color: #fff;
    box-shadow: 0 20px 50px -10px rgba(255, 255, 255, 0.3);
    animation-play-state: paused;
    /* Pause float on hover */
}

/* Responsive Hero */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
        margin-left: 0;
        margin-top: 60px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 15px;
}

.btn-primary {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    background: transparent;
}

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
}

.btn-secondary {
    color: var(--heading-color);
    border: 1px solid var(--heading-color);
}

.btn-secondary:hover {
    background: rgba(204, 214, 246, 0.1);
}

/* About Section */
.about-content {
    max-width: 800px;
    font-size: 18px;
}

/* Experience Section */
.experience-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 6px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.exp-role {
    color: var(--heading-color);
    font-size: 20px;
    font-weight: 600;
}

.exp-company {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 500;
    margin-top: 5px;
}

.exp-date {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-color);
}

.exp-location {
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.exp-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
}

.exp-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.edu-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 6px;
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateY(-5px);
}

.edu-card h3 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 10px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 6px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.skill-category h3 {
    color: var(--heading-color);
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #233554;
    padding-bottom: 10px;
}

.skill-category ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 14px;
}

.skill-category ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.interest-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.interest-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.interest-card h3 {
    color: var(--heading-color);
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.interest-card p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Gallery Styles */
.section-subtitle {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 40px;
    margin-top: -30px;
}

.pinterest-grid {
    column-count: 4;
    column-gap: 20px;
}

.pin-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.pin-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.pin-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(2, 12, 27, 0.7);
}

.pin-item:hover img {
    transform: scale(1.05);
}

/* Responsive Gallery */
@media (max-width: 1100px) {
    .pinterest-grid {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .pinterest-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .pinterest-grid {
        column-count: 1;
    }
}

/* Contact Section */
.contact-section {
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-details {
    margin: 30px 0;
    font-size: 18px;
}

.contact-link {
    color: var(--accent-color);
    font-weight: 500;
}

.highlight {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-divider {
    margin: 0 10px;
    color: var(--text-color);
}

.work-auth {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    font-family: monospace;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 40px;
    }

    .nav {
        display: none;
        /* Simple hide for mobile for this MVP */
    }

    .exp-header {
        flex-direction: column;
    }

    .exp-date {
        margin-top: 5px;
    }
}