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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
    scroll-margin-top: 0;
    background: rgba(26, 26, 46, 0.5);
}

.hero-container {
    width: 100%;
    max-width: 1263px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4a90e2, #7b68ee, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

/* Buttons - Make all buttons have the same solid style */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    /* Make all buttons have the same solid blue style */
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    border: 2px solid transparent;
}

/* Override all button variants to use the same style */
.btn-primary,
.btn-secondary,
.btn-resume {
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    border: 2px solid transparent;
}

.btn:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    border-color: transparent;
}

/* Profile Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: -1rem;
    padding-top: 0;
}

.profile-photo {
    width: 420px;
    height: 420px;
    border-radius: 15px;
    object-fit: cover;
    border: 4px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-arrow {
    width: 28px;
    height: 28px;
    border: 2px solid #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: #667eea;
}

.scroll-arrow::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid #4a90e2;
    border-bottom: 2px solid #4a90e2;
    transform: rotate(45deg);
    margin-top: -2px;
    transition: border-color 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow::after {
    border-color: #667eea;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Styles */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(26, 26, 46, 0.5);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skills {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2rem;
    color: #4a90e2;
}

.skill-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: rgba(26, 26, 46, 0.3);
}

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

.project-card {
    background: rgba(74, 144, 226, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.15);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

.project-content p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0;
}

.project-tags span {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    font-size: 0.75rem;
    border: 1px solid rgba(74, 144, 226, 0.3);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.project-link:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    transform: translateY(-1px);
}

.project-link i {
    font-size: 0.85rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(26, 26, 46, 0.5);
}

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

.contact-info p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cccccc;
}

.contact-method i {
    color: #4a90e2;
    font-size: 1.2rem;
}

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

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(74, 144, 226, 0.2);
    border: 2px solid #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
}

.contact-action {
    text-align: center;
    margin-top: 2rem;
}

.contact-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 12px 30px;
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    border: 2px solid #4a90e2;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-email-btn:hover {
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 2rem 0;
    text-align: center;
    color: #888888;
}

/* Animations */
.typing-text {
    border-right: 3px solid #4a90e2;
    animation: typing 3s steps(20, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #4a90e2; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1rem;
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 200px;
        text-align: center;
        border-radius: 12px;
    }
    
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    
    .hero {
        min-height: 65vh;
        padding: 2.5rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .profile-photo {
        width: 300px;
        height: 300px;
    }
    
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-description { font-size: 1rem; }
    .btn { padding: 10px 22px; font-size: 0.9rem; }
    .hero-buttons { gap: 0.8rem; }
    
    .about-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .skill-item {
        padding: 0.8rem;
    }
    
    .skill-item i {
        font-size: 1.8rem;
    }
    
    .skill-item span {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 0.85rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* Add this to hide scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 55vh;
        padding: 2rem 0;
    }
    
    .profile-photo {
        width: 240px;
        height: 240px;
    }
    
    .hero-title { font-size: 2rem; }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-text p {
        font-size: 0.85rem;
    }
    
    .skill-item {
        padding: 0.6rem;
        gap: 0.2rem;
    }
    
    .skill-item i {
        font-size: 1.6rem;
    }
    
    .skill-item span {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1rem;
    }
    
    .project-content p {
        font-size: 0.8rem;
    }
    
    .projects-grid { grid-template-columns: 1fr; }
}

/* Mobile-specific fixes for hero section */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1; /* Move image above text on mobile */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }
    
    .profile-photo {
        width: 200px !important;
        height: 200px !important;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
        display: block;
    }
    
    .floating-elements {
        display: none; /* Hide floating elements on mobile for cleaner look */
    }
    
    .hero-text {
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Fix scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    .scroll-arrow {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.7);
        border-top: none;
        border-right: none;
        transform: rotate(-45deg);
        animation: bounce 2s infinite;
    }
    
    .scroll-arrow::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -1px;
        width: 2px;
        height: 15px;
        background: rgba(255, 255, 255, 0.7);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(-10px) rotate(-45deg);
    }
    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        padding: 80px 0 60px;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .profile-photo {
        width: 180px !important;
        height: 180px !important;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .scroll-indicator {
        bottom: 0.5rem;
    }
    
    .scroll-arrow {
        width: 18px;
        height: 18px;
    }
}