:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f4c75;
    --highlight: #3282b8;
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--highlight);
    box-shadow: 0 10px 40px rgba(50, 130, 184, 0.3);
    animation: fadeInDown 0.8s ease;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    width: 100%;
}

.hero-greeting {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
    font-size: 18px;
    color: var(--accent);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--highlight);
    border-color: var(--highlight);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(50, 130, 184, 0.3);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 1s ease 1s both;
    margin-top: 60px;
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--highlight), transparent);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Section Styling */
section {
    padding: 100px 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 48px);
    color: var(--primary);
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--highlight);
    margin: 20px auto 0;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .lead {
    font-size: 22px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.about-text p {
    font-size: 17px;
    color: var(--accent);
    margin-bottom: 20px;
}

.certifications {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid var(--highlight);
}

.certifications h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
}

.cert-item {
    margin-top: 10px;
}

.cert-item strong {
    color: var(--secondary);
    font-size: 16px;
}

.cert-item p {
    font-size: 15px;
    margin-bottom: 5px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid var(--highlight);
}

.stat-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills {
    background: var(--bg-light);
}

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

.skill-category {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

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

.tag {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--highlight);
    color: var(--text-light);
    border-color: var(--highlight);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px var(--shadow);
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--highlight);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding: 25px 35px 0 35px;
}

.project-header h3 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 600;
}

.project-status {
    background: var(--highlight);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: 16px;
    color: var(--accent);
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 35px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 0 35px;
}

.tech-tag {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.project-timeline {
    font-size: 14px;
    color: var(--secondary);
    font-style: italic;
    padding: 0 35px 25px 35px;
}

.project-link {
    display: inline-block;
    color: var(--highlight);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin: 0 35px 25px 35px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Education Section */
.education {
    background: var(--bg-light);
}

.education-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 150px;
    top: 0;
    bottom: -50px;
    width: 2px;
    background: var(--border);
}

.education-item:last-child::before {
    display: none;
}

.education-year {
    font-size: 18px;
    font-weight: 600;
    color: var(--highlight);
    text-align: right;
    padding-top: 5px;
}

.education-content {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    border-left: 4px solid var(--highlight);
}

.education-content h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.institution {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 5px;
}

.gpa {
    font-size: 15px;
    color: var(--highlight);
    font-weight: 600;
    margin-bottom: 15px;
}

.education-highlights {
    list-style: none;
    padding-left: 0;
}

.education-highlights li {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.education-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--highlight);
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.contact-info-alt {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.contact-info-alt p {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-links-alt {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-links-alt a {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border: 2px solid var(--highlight);
    border-radius: 6px;
    display: inline-block;
}

.contact-links-alt a:hover {
    background: var(--highlight);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 130, 184, 0.3);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }
    
    .hero-content {
        gap: 25px;
        padding-top: 20px;
        padding-bottom: 0;
        margin-bottom: 0;
        flex-direction: column;
    }
    
    .hero-image {
        width: 150px;
        height: 150px;
        margin-top: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .education-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-item::before {
        display: none;
    }
    
    .education-year {
        text-align: left;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 0;
        padding-bottom: 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        padding: 100px 15px 50px;
    }
    
    .hero-content {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-image {
        width: 130px;
        height: 130px;
        margin-top: 10px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-buttons {
        gap: 12px;
        margin-top: 10px;
        margin-bottom: 50px;
        padding-bottom: 0;
    }
    
    section {
        padding: 60px 15px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
}
