/* Modern Portfolio Styles */
:root {
    --bg-color: #ffffff;
    --text-color: #4a5568;
    --heading-color: #2d3748;
    --accent-color: #0066ff;
    --nav-color: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --hover-color: rgba(0, 102, 255, 0.08);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Hero Section Styles */
#hero {
    height: 12cm;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 60px auto 3.5cm; /* Set margin bottom to 3.5cm */
    max-width: 1200px;
    gap: 2rem;
}

.hero-content {
    flex: 0 1 auto;
    text-align: left;
    padding: 0 2rem;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        height: auto;
        padding: 2rem;
        text-align: center;
        margin-top: 80px;
    }

    .hero-content {
        padding: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
        margin: 1rem 0;
    }

    .hero-image img {
        width: 280px;
    }
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 60px; /* Add space for fixed header */
}

/* Hero Section */
#hero {
    height: 12cm;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 60px auto 0.5cm; /* Exactly 0.5cm margin bottom */
    max-width: 1200px;
    gap: 2rem;
    background: var(--bg-color);
}

.hero-content {
    flex: 0 1 auto;
    text-align: left;
    padding: 0 2rem;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    object-fit: cover;
}

@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        order: 2;
        padding: 0 1rem;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-image img {
        max-width: 300px;
    }
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 24px rgba(0, 123, 255, 0.15);
}

header nav ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    padding: 0 2rem;
}

header nav ul li a {
    color: var(--heading-color);
    text-decoration: none;
    font-family: 'SF Mono', monospace;
    font-size: 15px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 4px;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a:hover {
    color: var(--accent-color);
    background: rgba(0, 123, 255, 0.05);
}

header nav ul li a i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

header nav ul li a:hover i {
    transform: translateY(-2px);
}

/* Hero Section */
#hero {
    height: 12cm;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 60px auto 0;
    max-width: 1200px;
    background: var(--bg-color);
}

.hero-content {
    flex: 0 1 auto;
    text-align: left;
    padding: 0 4rem;
}

.hero-image {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
}

.hero-image img {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-top: 80px;
    }

    .hero-content {
        order: 2;
        padding: 2rem;
    }

    .hero-image {
        order: 1;
        margin: 2rem 0;
    }

    .hero-image img {
        max-width: 300px;
    }
}

/* Hero Section Media Queries */

/* Media Queries for Hero Section */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 1400px) {
    #hero {
        padding: 0 80px;
        height: 454px;
    }
    
    .hero-content {
        padding-right: 50px;
    }
    
    #hero img {
        height: 430px;
    }
}

@media (max-width: 768px) {
    #hero {
        height: auto;
        padding: 60px 25px;
    }
    
    #hero img {
        height: 380px;
    }
}

@media (max-width: 1200px) {
    #hero {
        padding: 0 80px;
    }
    
    .hero-content {
        padding-right: 60px;
    }
    
    #hero img {
        height: 550px;
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 120px 25px;
        flex-direction: column-reverse;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        align-items: center;
    }
    
    .hero-image {
        margin: 0 0 40px 0;
        justify-content: center;
    }

    #hero img {
        height: 450px;
        width: auto;
        max-width: 100%;
        object-fit: cover;
    }

    #hero::before {
        width: 400px;
        height: 400px;
        top: -50px;
        left: -50px;
    }
    
    #hero h1 {
        font-size: clamp(40px, 8vw, 60px);
    }
}
}
}

#hero h1 {
    font-size: clamp(38px, 8vw, 110px);
    color: var(--heading-color);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
}

#hero p {
    color: var(--accent-color);
    font-family: 'SF Mono', monospace;
    font-size: 24px;
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-subtitle {
    color: var(--text-color);
    font-size: clamp(18px, 3vw, 22px);
    margin: 20px 0;
    max-width: 540px;
    line-height: 1.6;
}

#hero img {
    width: auto;
    height: 430px;
    object-fit: cover;
    transition: var(--transition);
    animation: fadeIn 1s ease-in;
    border-radius: 4px;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
    margin-left: -50px;
}

#hero img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.15);
}

/* Paint Drop Effect */
#hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 800px;
    height: 800px;
    background-color: #ffd700;
    opacity: 0.12;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 75%, 0% 75%);
    transform: rotate(5deg);
    z-index: 1;
}

/* Section Styles */
section {
    padding: 0 150px;
    max-width: 1600px;
    margin: 0 auto;
}

#about {
    padding-top: 3.5cm; /* Set padding top to 3.5cm */
    margin-top: 0;
    padding-bottom: 0;
    position: relative;
}

section h2 {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 0 15px; /* Reduced bottom margin of section headings */
    width: 100%;
    font-size: clamp(26px, 5vw, 32px);
    color: var(--heading-color);
    white-space: nowrap;
}

section h2::after {
    content: "";
    display: block;
    position: relative;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--accent-color);
    opacity: 0.25;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

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

.card h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 22px;
    position: relative;
    padding-left: 30px;
}

.card h3::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.card p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    padding-left: 30px;
}

.card a {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    font-family: 'SF Mono', monospace;
    font-size: 14px;
}

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

/* Education Section Styles */
#education .card {
    position: relative;
    padding-left: 30px;
}

#education .education-title {
    color: var(--heading-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#education .card strong {
    color: var(--accent-color);
}

#education .card::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 20px;
}

/* Button Styles */
.cta {
    display: inline-block;
    color: var(--accent-color);
    background-color: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 1.25rem 1.75rem;
    font-size: 14px;
    font-family: 'SF Mono', monospace;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.cta:hover {
    background-color: var(--hover-color);
    outline: none;
    transform: translateY(-3px);
}

.cta-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 1rem;
}

.cta-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.hero-content {
    max-width: 600px;
}

.hero-buttons {
    margin-top: 2rem;
}

.typed-text {
    border-right: 3px solid var(--accent-color);
    padding-right: 5px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Custom font loading */
@font-face {
    font-family: 'Calibre';
    src: url('https://brittanychiang.com/font/Calibre/Calibre-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Calibre';
    src: url('https://brittanychiang.com/font/Calibre/Calibre-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Calibre';
    src: url('https://brittanychiang.com/font/Calibre/Calibre-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* Initialize section counter */
body {
    counter-reset: section;
}

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

/* Selection color */
::selection {
    background-color: var(--hover-color);
    color: var(--accent-color);
}

section {
    padding: 15px 0;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1080px) {
    section {
        padding: 40px 100px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 30px 50px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 25px 25px;
    }
}

.card {
    background: transparent;
    border-radius: 4px;
    padding: 25px 0;
    margin-bottom: 30px;
    position: relative;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: transparent;
    color: var(--text-color);
    width: 100%;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
}

/* Style for social media icons */
ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

ul li a img {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    width: 24px;
    height: 24px;
    box-shadow: none;
    transition: none;
}
