:root {
    --primary-color: #02569B; /* Flutter Blue */
    --secondary-color: #0175C2; /* Lighter Flutter Blue */
    --accent-color: #4FC3F7; /* Cyan/Light Blue */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --code-font: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Tech-themed Enhancements */
.mono-text {
    font-family: var(--code-font);
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
    font-family: var(--code-font);
    display: inline-block;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

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

/* Floating Code Background */
.code-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.code-bg span {
    position: absolute;
    color: rgba(2, 86, 155, 0.05);
    font-family: var(--code-font);
    font-weight: 700;
    user-select: none;
    animation: float 20s linear infinite;
}

.code-bg span:nth-child(1) { top: 10%; left: 10%; font-size: 2rem; animation-duration: 15s; }
.code-bg span:nth-child(2) { top: 20%; left: 80%; font-size: 3rem; animation-duration: 25s; }
.code-bg span:nth-child(3) { top: 60%; left: 15%; font-size: 1.5rem; animation-duration: 18s; }
.code-bg span:nth-child(4) { top: 70%; left: 70%; font-size: 2.5rem; animation-duration: 22s; }
.code-bg span:nth-child(5) { top: 30%; left: 40%; font-size: 1.8rem; animation-duration: 20s; }
.code-bg span:nth-child(6) { top: 85%; left: 30%; font-size: 2.2rem; animation-duration: 17s; }
.code-bg span:nth-child(7) { top: 15%; left: 60%; font-size: 1.6rem; animation-duration: 19s; }
.code-bg span:nth-child(8) { top: 50%; left: 90%; font-size: 2.8rem; animation-duration: 24s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Hero Section */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(240,248,255,1) 100%);
    padding-top: 70px; /* Navbar height */
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary-color);
    margin-right: 15px;
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-img-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 2px dashed var(--primary-color);
    z-index: 0;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Section */
.about-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.link-highlight {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

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

.skill-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-icon-img {
    height: 3rem;
    width: auto;
    margin: 0 auto 15px;
    display: block;
}

.skill-card span {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 20px; /* Adjust for dot positioning */
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    left: 10px;
    top: 0;
    z-index: 1;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p, .timeline-content ul {
    color: var(--text-light);
}

.timeline-content ul {
    list-style: disc;
    margin-left: 20px;
}

.timeline-content li {
    margin-bottom: 5px;
}

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

.education-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.education-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.education-card h4 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.edu-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 250px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-card p a {
    color: var(--text-light);
}

.contact-card p a:hover {
    color: var(--primary-color);
}

.download-cv-area {
    text-align: center;
}

/* Footer */
footer {
    background-color: #222;
    color: var(--white);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social a {
    color: var(--white);
    margin-left: 20px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
    }

    .hero-text {
        padding-right: 0;
        margin-top: 40px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        margin: 0 auto 30px;
    }
    
    .hero-img-container::before {
        width: 320px;
        height: 320px;
    }
    
    .hero-img {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding-top: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hamburger {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: 20px;
    }
    
    .footer-social a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h2 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-img {
        width: 250px;
        height: 250px;
    }
    
    .hero-img-container::before {
        width: 270px;
        height: 270px;
    }
}
