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

:root {
    --primary-color: #0d6efd;
    --secondary-color: #2563eb;
    --dark-color: #1a1a2e;
    --light-color: #f4f6fa;
    --text-color: #333;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(13,110,253,0.08);
    --shadow-md: 0 4px 16px rgba(13,110,253,0.12);
    --shadow-lg: 0 8px 32px rgba(13,110,253,0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    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"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: slideBackground 20s linear infinite;
}

@keyframes slideBackground {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(100px) translateY(100px); }
}

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

/* Two Column Layout for Hero */
.hero-two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right .profile-photo {
    width: 280px;
    height: 280px;
    margin-bottom: 0;
}

.hero-two-column h1 {
    text-align: left;
    font-size: 2.8rem;
}

.hero-two-column .hero-subtitle {
    text-align: left;
}

.hero-two-column .hero-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.hero-two-column .tech-icons {
    justify-content: flex-start;
}

.hero-two-column .contact-info {
    justify-content: flex-start;
}

.hero-two-column .btn-group {
    justify-content: flex-start;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    background: #e3e8ef;
    animation: fadeInScale 1s ease;
}

@keyframes fadeInScale {
    0% {
    opacity: 0;
    transform: scale(0.8);
    }
    100% {
    opacity: 1;
    transform: scale(1);
    }
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    0% {
    opacity: 0;
    transform: translateY(20px);
    }
    100% {
    opacity: 1;
    transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.tech-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.tech-icons img:hover {
    transform: translateY(-5px) scale(1.1);
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
    font-size: 1rem;
    animation: fadeInUp 1s ease 1s both;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeInUp 1s ease 1.2s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(13,110,253,0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

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

/* Section Styles */
section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(13,110,253,0.1);
    height: 100%;
}

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

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Experience Items */
.experience-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.experience-org {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.experience-date {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.experience-item li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.7;
}

.experience-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 8px 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Projects */
.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(13,110,253,0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleY(1);
}

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

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

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.project-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background: rgba(13,110,253,0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Education */
.education-card {
    background: linear-gradient(135deg, rgba(13,110,253,0.05), rgba(37,99,235,0.05));
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13,110,253,0.2);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.education-degree {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.education-school {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.education-date {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.education-gpa {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 10px;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cert-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.cert-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cert-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.cert-org {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    }

    .nav-menu.active {
    left: 0;
    }

    .nav-toggle {
    display: flex;
    }

    /* Two-column layout becomes single column on mobile */
    .hero-two-column {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
    }

    .hero-right .profile-photo {
        width: 200px;
        height: 200px;
    }

    .hero-two-column h1,
    .hero-two-column .hero-subtitle,
    .hero-two-column .hero-description {
        text-align: center;
    }

    .hero-two-column .tech-icons,
    .hero-two-column .contact-info,
    .hero-two-column .btn-group {
        justify-content: center;
    }

    header h1 {
    font-size: 2rem;
    }

    .hero-subtitle {
    font-size: 1.1rem;
    }

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

    .container {
    padding: 60px 15px;
    }

    .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    }

    .experience-header {
    flex-direction: column;
    }
}

@media (max-width: 480px) {
    header h1 {
    font-size: 1.75rem;
    }

    .profile-photo {
    width: 150px;
    height: 150px;
    }

    .tech-icons img {
    width: 35px;
    height: 35px;
    }

    .section-title {
    font-size: 1.75rem;
    }
}
