:root {
    --bg-color: #ffffff;
    --bg-secondary: #f0f4f8;
    --text-primary: #0a2540;
    --text-secondary: #425466;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

html {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, top 0.1s, left 0.1s;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    /* Reduced vertical padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.btn-contact {
    border: 2px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--accent-color) !important;
    font-weight: 600;
}

.btn-contact:hover {
    background: var(--accent-color);
    color: var(--white) !important;
}

/* Sections */
section {
    padding: 60px 100px;
    /* Reduced padding */
    min-height: auto;
    /* Allow sections to shrink */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 2rem;
    margin-right: 20px;
    color: var(--text-primary);
}

.section-header .line {
    height: 1px;
    background: var(--bg-secondary);
    flex-grow: 1;
    max-width: 300px;
}

/* Hero */
#hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 150px;
}

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

.greeting {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.name {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.role {
    font-size: 3.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 500px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.btn.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

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

.btn.secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.hero-image-container {
    position: relative;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 20px 20px 0 var(--bg-secondary);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0 var(--accent-color);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}


/* Timeline / Experience */
.timeline {
    border-left: 2px solid var(--bg-secondary);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    font-family: monospace;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.company {
    display: block;
    margin-bottom: 10px;
    font-style: italic;
    color: var(--text-secondary);
}

.timeline-content ul li {
    list-style-type: '▹';
    padding-left: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.timeline-content ul li::marker {
    color: var(--accent-color);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-category h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-secondary);
    padding-bottom: 5px;
    display: inline-block;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.contact-icons a {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.contact-icons a:hover {
    color: var(--white);
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tags span:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Projects */
.project-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.1);
    border: 1px solid var(--bg-secondary);
    transition: var(--transition);
}

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

.project-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.project-tech span {
    font-family: monospace;
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 0.85rem;
}

/* Contact */
#contact {
    text-align: center;
    align-items: center;
}

#contact h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#contact p {
    max-width: 500px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 80px 30px;
    }

    header {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }

    #hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        margin-top: 40px;
    }

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

    .name {
        font-size: 3rem;
    }

    .role {
        font-size: 2rem;
    }

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