/* Base Styles */
:root {
    --primary-color: #0077cc;
    --secondary-color: #004a80;
    --accent-color: #f0f7ff;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-alt: #f5f8fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

nav.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

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

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background-color: var(--background-alt);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 420px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin: 0 auto;
}

.intro-text {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.about-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.5;
}

.highlight-text {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.highlight-text h4 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--primary-color);
}

.location {
    margin-top: 2rem;
    font-style: italic;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--background-alt);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* Experience Section */
.experience-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 120px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 170px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 121px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
    border: 2px solid white;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.timeline-date {
    position: absolute;
    left: 0;
    width: 100px;
    text-align: right;
    padding-right: 20px;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.4;
}

.timeline-content {
    background-color: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content ul {
    padding-left: 1.2rem;
}

.timeline-content li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Resume Section */
.resume-section {
    padding: 100px 0;
    background-color: var(--accent-color);
    text-align: center;
}

.resume-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
}

.social-links ul {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-links a:hover .social-icon svg {
    transform: scale(1.1);
}

.contact-form {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.2);
}

/* Footer */
footer {
    background-color: var(--background-alt);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.project-card {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.project-content {
    flex: 1;
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.project-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
}

.project-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.project-features span {
    background: var(--light-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.project-cta {
    display: flex;
    gap: 20px;
}

.project-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        background-color: transparent;
        border: none;
        position: relative;
        z-index: 1001;
    }
    
    .bar {
        background-color: var(--primary-color);
        height: 3px;
        border-radius: 3px;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        display: flex;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-menu.active {
        left: 0;
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .timeline::before {
        left: 80px;
    }
    
    .timeline-item {
        padding-left: 120px;
    }
    
    .timeline-item::before {
        left: 81px;
        transform: translateX(-50%);
    }
    
    .timeline-date {
        width: 70px;
        padding-right: 10px;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .social-links ul {
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .project-card {
        flex-direction: column;
        padding: 30px;
    }
    
    .project-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .project-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-cta {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .highlight-text h4 {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
        padding: 0;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 2rem;
    }
    
    .hero-image img {
        max-width: 300px;
        max-height: 300px;
        object-fit: cover;
        margin: 0 auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    .timeline::before {
        left: 60px;
    }
    
    .timeline-item {
        padding-left: 90px;
    }
    
    .timeline-item::before {
        left: 61px;
        transform: translateX(-50%);
    }
    
    .timeline-date {
        width: 50px;
        font-size: 0.85rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content li {
        font-size: 0.95rem;
    }

    /* Improved hamburger menu for mobile */
    .hamburger {
        z-index: 1001;
    }
    
    .nav-menu {
        z-index: 1000;
        top: 60px;
        height: auto;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    nav .container {
        padding: 0.5rem 15px;
    }
}

/* iPhone-specific adjustments */
@media (max-width: 428px) { /* iPhone 13 width */
    .hero-image img {
        max-width: 250px;
        max-height: 250px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    nav .container {
        width: 95%;
    }
} 