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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

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

/* Hamburger menu for mobile */
.hamburger {
    display: none; /* hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile menu */
.nav-menu {
    display: none; /* hide by default */
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 70px; /* height of navbar */
    right: 0;
    width: 200px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-menu.active {
    display: flex; /* show menu when JS toggles .active */
}

/* Optional: nav links inside mobile menu */
.nav-menu li {
    width: 100%;
}

.nav-menu li .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 18px;
    color: var(--text-dark);
}

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


/* Show hamburger on small screens */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px; /* height of navbar */
        right: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-white);
        padding: 20px;
        gap: 15px;
        z-index: 999;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        font-size: 18px;
        text-align: center;
    }
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    color: white;
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.word {
    display: inline-block;
    animation: slideInUp 0.8s ease forwards;
    opacity: 0;
}

.word:nth-child(1) {
    animation-delay: 0.2s;
}

.word:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeIn 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

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

.hero-animation {
    flex: 1;
    position: relative;
    height: 400px;
    display: none;
}

.animated-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    top: 50px;
    right: 50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.15);
    bottom: 100px;
    right: 100px;
    animation: float 8s ease-in-out infinite 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    bottom: 50px;
    right: 300px;
    animation: float 7s ease-in-out infinite 2s;
}

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

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

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

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

.about-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border: 4px solid white;
    animation: fadeInLeft 1s ease;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
}

.photo-frame:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-frame:hover .profile-photo {
    transform: scale(1.05);
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
    pointer-events: none;
    z-index: 2;
}

.about-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    gap: 30px;
}

.stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.stat h3 {
    font-size: 42px;
    margin-bottom: 10px;
}

.stat p {
    opacity: 0.9;
    font-size: 16px;
}

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

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

.project-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.8s ease forwards;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* Skills Section */
.skills {
    padding: 100px 20px;
    background: var(--bg-white);
}

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

.skill-category {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.skill-category h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item span {
    font-weight: 600;
    color: var(--text-dark);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    animation: widthExpand 1.5s ease forwards;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-item a,
.info-item p {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.info-item a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    flex-wrap: wrap;              /* allows wrapping */
    gap: 10px;                    /* space between links */
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;
    font-size: 0.9rem;
    text-decoration: none;

    color: #fff;
    background: #667eea;
    border-radius: 20px;

    white-space: nowrap;          /* keeps text in one line */
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-link:hover {
    background: #764ba2;
    transform: translateY(-2px);
}


/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    resize: none;
    outline: none;
    backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* Submit Button */
.contact-form button {
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }

    .contact-form button {
        width: 100%;
        text-align: center;
    }
}


/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes widthExpand {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 80vh;
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-animation {
        display: none;
    }

    .section-title {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo-frame {
        width: 250px;
        height: 350px;
        margin: 0 auto;
    }

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

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

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

    .stat {
        padding: 20px;
    }

    .stat h3 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .about-text p {
        font-size: 16px;
    }
}
