/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4a90e2;
    --dark-blue: #2c5f8d;
    --light-blue: #7fb3d5;
    --accent-blue: #5dade2;
    --dark-grey: #2c3e50;
    --medium-grey: #546e7a;
    --light-grey: #ecf0f1;
    --off-white: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(44, 62, 80, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--off-white);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--medium-grey);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--dark-blue) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 48px;
    height: auto;
    object-fit: contain;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light-grey);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    border-bottom-color: var(--accent-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, var(--primary-blue) 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(93, 173, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 95, 141, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" x="0" y="0" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: var(--light-grey);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(93, 173, 226, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--white);
}

/* Featured Section */
.featured {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

.featured h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-grey);
}

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

.project-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.2);
}

.project-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card-content {
    padding: 1.5rem;
}

.project-card h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--medium-grey);
}

.link-arrow {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}

.link-arrow:hover {
    transform: translateX(5px);
    color: var(--dark-blue);
}

/* Skills Preview */
.skills-preview {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--dark-blue) 100%);
    color: white;
}

.skills-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

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

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.skill-item h3 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.skill-item p {
    color: var(--light-grey);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, var(--primary-blue) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(93, 173, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(44, 95, 141, 0.2) 0%, transparent 50%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: var(--light-grey);
    font-size: 1.2rem;
}

.portfolio-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.portfolio-section .project-img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.project-detail {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--off-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.project-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.project-info {
    display: flex;
    flex-direction: column;
}

.project-info h2 {
    color: var(--dark-blue);
}

.project-meta {
    color: var(--medium-grey);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-top: 1rem;
}

.tech-stack li {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* About Content */
.about-content {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-intro-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
}

.about-intro h2 {
    color: var(--dark-blue);
}

.skills-detailed {
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--off-white);
    border-radius: 12px;
}

.skills-detailed h2 {
    color: var(--dark-blue);
}

.skills-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-column {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
    border-left: 4px solid var(--primary-blue);
}

.skill-column h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.skill-column ul {
    list-style: none;
}

.skill-column li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-grey);
    color: var(--medium-grey);
    transition: color 0.3s ease;
}

.skill-column li:hover {
    color: var(--primary-blue);
}

.skill-column li:last-child {
    border-bottom: none;
}

/* Experience Timeline */
.experience {
    margin-bottom: 4rem;
}

.experience h2 {
    color: var(--dark-blue);
}

.timeline {
    margin-top: 2rem;
}

.timeline-item {
    padding-left: 2.5rem;
    border-left: 3px solid var(--primary-blue);
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--primary-blue);
}

.timeline-item h3 {
    color: var(--dark-blue);
}

.timeline-company {
    color: var(--medium-grey);
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Education */
.education {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-grey) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 4px 15px var(--shadow);
}

.education h2 {
    color: var(--dark-blue);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
}

.contact-method h3 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.contact-method p {
    margin-bottom: 0;
}

.contact-method a {
    color: var(--dark-blue);
    font-weight: 500;
}

.availability {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.availability h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.availability p {
    color: var(--light-grey);
    margin-bottom: 0;
}

/* Contact Form */
.contact-form-container {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--light-grey);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--dark-blue) 100%);
    color: var(--light-grey);
    padding: 2.5rem 0;
    text-align: center;
}

footer p {
    color: var(--light-grey);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

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

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

    .about-intro-section {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 100%;
        height: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .skills-detailed,
    .contact-form-container {
        padding: 1.5rem;
    }
}