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

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1e1e1e;
    font-weight: 300;
    position: relative;
    overflow-x: hidden;
}

/* Global animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

/* Global floating shapes */
.global-shape-1,
.global-shape-2,
.global-shape-3 {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 12s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.global-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.global-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    top: 60%;
    right: 10%;
    left: auto;
    animation-delay: 4s;
}

.global-shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    top: 20%;
    right: 5%;
    left: auto;
    animation-delay: 8s;
}

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

/* Navigation */
.navbar {
    position: relative;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    max-width: 90%;
    width: fit-content;
    margin: 20px auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

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

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hamburger.active {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 8px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-logo h2 {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.nav-logo h3 {
    color: #cccccc;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.nav-logo a:hover h2,
.nav-logo a:hover h3 {
    color: #8b5cf6;
}

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

.nav-menu li {
    margin: 0;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.nav-menu a:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.nav-menu a.active {
    background: #333333;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.nav-menu a.active::before {
    display: none;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.linkedin-icon {
    width: 30px;
    height: 30px;
    background: #0077b5;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.linkedin-icon:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding: 120px 0 40px;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -3px;
}

.hero-title .highlight {
    color: #8b5cf6;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 600px;
}

.hero-buttons {
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    background: #8b5cf6;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Hero Background */

@keyframes float {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    6.25% { 
        transform: translateY(-400px) translateX(600px) rotate(22.5deg) scale(1.2);
    }
    12.5% { 
        transform: translateY(-800px) translateX(1200px) rotate(45deg) scale(1.8);
    }
    18.75% { 
        transform: translateY(-600px) translateX(-1000px) rotate(67.5deg) scale(0.6);
    }
    25% { 
        transform: translateY(-300px) translateX(-1400px) rotate(90deg) scale(0.4);
    }
    31.25% { 
        transform: translateY(-1000px) translateX(1600px) rotate(112.5deg) scale(2.2);
    }
    37.5% { 
        transform: translateY(-700px) translateX(1800px) rotate(135deg) scale(1.6);
    }
    43.75% { 
        transform: translateY(-200px) translateX(-1200px) rotate(157.5deg) scale(0.8);
    }
    50% { 
        transform: translateY(-150px) translateX(-800px) rotate(180deg) scale(0.3);
    }
    56.25% { 
        transform: translateY(-1200px) translateX(2000px) rotate(202.5deg) scale(2.5);
    }
    62.5% { 
        transform: translateY(-800px) translateX(2200px) rotate(225deg) scale(1.9);
    }
    68.75% { 
        transform: translateY(-400px) translateX(-1600px) rotate(247.5deg) scale(0.7);
    }
    75% { 
        transform: translateY(-600px) translateX(-1800px) rotate(270deg) scale(0.5);
    }
    81.25% { 
        transform: translateY(-1400px) translateX(2400px) rotate(292.5deg) scale(2.8);
    }
    87.5% { 
        transform: translateY(-1000px) translateX(2600px) rotate(315deg) scale(2.1);
    }
    93.75% { 
        transform: translateY(-500px) translateX(-2000px) rotate(337.5deg) scale(0.9);
    }
    100% { 
        transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: #1e1e1e;
}

.about h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: -1px;
}

.about p {
    font-size: 1.1rem;
    color: #cccccc;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

/* Portfolio Section */
.portfolio {
    padding: 60px 0 100px;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 10;
}




.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    background: transparent;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: none;
    transition: all 0.4s ease;
    border: none;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    gap: 3rem;
    min-height: 300px;
}

.portfolio-item:nth-child(even) {
    flex-direction: row-reverse;
}

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

.portfolio-image {
    flex: 1;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Portfolio images styling */
.portfolio-item .portfolio-image,
.portfolio-item .portfolio-image img {
    overflow: hidden;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #9ca3af;
    font-weight: 500;
    font-size: 1.1rem;
}

.portfolio-content {
    flex: 1;
    padding: 1rem 0;
}

.portfolio-category {
    font-size: 0.75rem;
    color: #a78bfa;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.portfolio-category:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.portfolio-content h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.portfolio-content p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
    font-size: 0.95rem;
}

.case-study-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.case-study-link:hover {
    color: #ec4899;
}

/* Resume Section */
.resume {
    padding: 100px 0;
    background: #f8f8f8;
}

.resume h2 {
    font-size: 2.8rem;
    color: #2c2c2c;
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: -1px;
}

.resume-section {
    margin-bottom: 4rem;
}

.resume-section h3 {
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 1rem;
}

.resume-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #8b5cf6;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border-left: 3px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.experience-item:hover {
    background: #fafafa;
    border-left-color: #8b5cf6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.experience-item h4 {
    font-size: 1.3rem;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.company {
    color: #888;
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.experience-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #666;
    font-weight: 300;
    line-height: 1.6;
}

.experience-list li::before {
    content: "•";
    color: #8b5cf6;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.skill-category:hover {
    background: #fafafa;
    border-color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.skill-category h4 {
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

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

.skill-category li {
    padding: 0.6rem 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 300;
    transition: color 0.3s ease;
}

.skill-category li:hover {
    color: #2c2c2c;
}

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

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.education-item:hover {
    background: #fafafa;
    border-color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.education-item h4 {
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.school {
    color: #888;
    font-weight: 400;
    font-size: 0.95rem;
}

.resume-download {
    text-align: center;
    margin-top: 4rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f8f8;
}

.contact h2 {
    font-size: 2.8rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: -1px;
}

.contact p {
    text-align: center;
    color: #666;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

/* Footer */
.footer {
    background: #1e1e1e;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.footer-left {
    text-align: center;
}

.footer-right {
    position: absolute;
    right: 0;
}

.footer-left p {
    color: #ccc;
    font-weight: 300;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-top {
    width: 40px;
    height: 40px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.scroll-top:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

/* Responsive Design */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .portfolio-item {
        gap: 2rem;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .portfolio-item {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .portfolio-item:nth-child(even) {
        flex-direction: column;
    }
    
    .portfolio-image {
        height: 280px;
    }
    
    .about-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-profile {
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Small screens */
/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        max-height: 400px;
        background: #333333 !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        z-index: 999;
        border-radius: 0 0 16px 16px;
    }
    
    .nav-menu.active {
        left: 0;
        background: #333333 !important;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
        width: 200px;
        color: #ffffff;
        text-decoration: none;
    }
    
    .nav-menu a:hover {
        background: rgba(139, 92, 246, 0.2);
        color: #8b5cf6;
    }
    
    .nav-menu a.active {
        background: rgba(139, 92, 246, 0.2);
        color: #8b5cf6;
        font-weight: 600;
        border-radius: 8px;
    }
    
    .nav-social {
        margin-top: 0;
    }
    
    .navbar {
        margin: 10px auto;
        padding: 0.4rem 1rem;
        max-width: 95%;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-logo h3 {
        font-size: 0.7rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 0 0 25px 25px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .nav-menu a {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .nav-logo h3 {
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .portfolio {
        padding: 80px 0;
    }
    
    .portfolio-grid {
        gap: 3rem;
    }
    
    .portfolio-item {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .portfolio-content h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-content p {
        font-size: 0.9rem;
    }
    
    .about-hero {
        padding: 80px 0;
    }
    
    .about-hero-content {
        padding: 0 1rem;
    }
    
    .about-profile {
        width: 200px;
        height: 200px;
    }
    
    .about-bio h2 {
        font-size: 2rem;
    }
    
    .about-bio p {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .gradient-shape {
        display: none;
    }
    
    /* Back to Top Button - Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .nav-logo h3 {
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .portfolio {
        padding: 60px 0;
    }
    
    .portfolio-grid {
        gap: 2rem;
    }
    
    .portfolio-item {
        padding: 1rem;
        margin: 0;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-content h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-content p {
        font-size: 0.85rem;
    }
    
    .about-hero {
        padding: 60px 0;
    }
    
    .about-profile {
        width: 150px;
        height: 150px;
    }
    
    .about-bio h2 {
        font-size: 1.8rem;
    }
    
    .about-bio p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-left p {
        font-size: 0.8rem;
    }
    
    /* Back to Top Button - Extra Small Mobile */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.portfolio-image img {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

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

/* Subtle animations */
.portfolio-item,
.experience-item,
.skill-category,
.education-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects Page Styles */
.projects-page {
    padding: 120px 0 80px;
    background: transparent;
    position: relative;
    min-height: 100vh;
}

.projects-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.projects-page .portfolio-grid {
    position: relative;
    z-index: 2;
}

.projects-page .portfolio-item {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.projects-page .portfolio-item:hover {
    background: transparent;
    box-shadow: none;
}

.projects-page .portfolio-category {
    font-size: 0.75rem;
    color: #a78bfa;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.projects-page .portfolio-category:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* About Me Page Styles */
.nav-menu a.active {
    color: #2c2c2c;
    position: relative;
}

.nav-menu a.active::after {
    display: none;
}

.about-hero {
    padding: 100px 0 60px;
    background: transparent;
    margin: 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    z-index: 10;
    position: relative;
}

.about-hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-icon {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon svg {
    width: 400px;
    height: 400px;
    shape-rendering: geometricPrecision;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.blue-circle, .purple-circle {
    animation: float 6s ease-in-out infinite;
}

.blue-circle {
    animation-delay: 0s;
}

.purple-circle {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Hide animated icon on mobile */
@media (max-width: 768px) {
    .about-icon {
        display: none;
    }
}

/* Reduce global background shapes on mobile */
@media (max-width: 768px) {
    .global-shape-1 {
        width: 120px;
        height: 120px;
        opacity: 0.1;
        filter: blur(40px);
    }
    
    .global-shape-2 {
        width: 90px;
        height: 90px;
        opacity: 0.08;
        filter: blur(30px);
    }
    
    .global-shape-3 {
        width: 100px;
        height: 100px;
        opacity: 0.1;
        filter: blur(35px);
    }
    
    /* Reduce spacing between hero and portfolio sections on mobile */
    .hero {
        padding-bottom: -20px;
        padding-top: 0px;
        margin-top: -60px;
        margin-bottom: -60px;
    }
    
    .portfolio {
        padding-top: 10px;
    }
    
    /* Reduce bottom padding of project images on mobile */
    .portfolio-image {
        padding-bottom: 8px;
    }
    
    /* Improve project grouping on mobile without containers */
    .portfolio-item {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .portfolio-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .portfolio-content {
        margin-top: -0.5rem;
    }
    
    .portfolio-text h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        color: #ffffff;
        font-weight: 600;
    }
    
    .portfolio-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        color: #e5e5e5;
    }
    
    .portfolio-category {
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }
    
    .portfolio-links {
        margin-top: 1rem;
    }
}

.about-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem;
    color: #8b5cf6;
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.about-text .hero-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 600px;
}

.about-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
}

.profile-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
    padding: 6px;
    position: relative;
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
    transition: all 0.4s ease;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bio-section {
    padding: 100px 0;
    background: #1e1e1e;
    margin: 0;
    position: relative;
}

.bio-section h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
}

.bio-section p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 300;
    max-width: 800px;
    text-align: left;
}

.experience-section {
    padding: 100px 0;
    background: transparent;
    margin: 0;
    position: relative;
    z-index: 10;
}

.experience-section * {
    background: transparent !important;
}

.experience-content {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.experience-content h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.experience-date {
    font-size: 0.9rem;
    color: #8b5cf6;
    font-weight: 500;
}

.experience-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.experience-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid #444444;
    transition: all 0.3s ease;
}

.experience-list-item:last-child {
    border-bottom: none;
}

.experience-list-item:hover {
    color: #ffffff;
}

.experience-text {
    color: #cccccc;
    font-weight: 300;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
}

.experience-list-item:hover .experience-text {
    color: #ffffff;
}

.skills-section {
    padding: 100px 0;
    background: transparent;
    margin: 0;
    position: relative;
    z-index: 10;
}

.skills-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}


.skills-section-content,
.tools-section-content {
    max-width: 100%;
    margin: 0;
}

.skills-section-content h2,
.tools-section-content h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.skills-list,
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skill-item,
.tool-item {
    padding: 1rem 0;
    border-bottom: 1px solid #444444;
    transition: all 0.3s ease;
}

.skill-item:last-child,
.tool-item:last-child {
    border-bottom: none;
}

.skill-name,
.tool-name {
    color: #cccccc;
    font-weight: 300;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.skill-item:hover .skill-name,
.tool-item:hover .tool-name {
    color: #ffffff;
}

.education-section {
    padding: 100px 0;
    background: #1e1e1e;
    margin: 0;
    position: relative;
}

.education-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-column h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.education-list li {
    margin-bottom: 1.5rem;
    color: #cccccc;
    font-weight: 300;
    line-height: 1.6;
    font-size: 1rem;
}

.education-list li strong {
    color: #ffffff;
    font-weight: 500;
}

.resume-button {
    flex-shrink: 0;
}

.btn-resume {
    background: #8b5cf6;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-resume:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.contact-section {
    padding: 120px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    margin: 0;
    z-index: 10;
    text-align: center;
}

.contact-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 1rem;
    font-weight: 300;
}

.contact-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-button {
    margin-top: 2rem;
}

.btn-email {
    background: #8b5cf6;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-email:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}


/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .about-text h1 {
        font-size: 2rem;
    }
    
    .profile-circle {
        width: 250px;
        height: 250px;
    }
    
    .about-image {
        flex: 0 0 250px;
    }
    
    .about-img {
        width: 280px;
        height: 280px;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .education-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
}

@media (max-width: 480px) {
    .about-text h1 {
        font-size: 1.8rem;
    }
    
    .profile-circle {
        width: 200px;
        height: 200px;
    }
    
    .about-image {
        flex: 0 0 200px;
    }
    
    .about-img {
        width: 220px;
        height: 220px;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .about-hero-content {
        flex-direction: column-reverse;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        flex: none;
    }
    
    .skills-tools-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Case Study Page Styles */
.case-study-hero {
    padding: 120px 0 80px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.case-study-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.case-study-category {
    font-size: 0.75rem;
    color: #a78bfa;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.case-study-category:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.case-study-hero h1 {
    font-size: 3rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.case-study-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 3rem;
    font-weight: 300;
}

.case-study-image {
    margin-top: 3rem;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-content {
    padding: 80px 0;
    background: transparent;
}

.case-study-grid {
    max-width: 800px;
    margin: 0 auto;
}

.case-study-section {
    margin-bottom: 4rem;
}

.case-study-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.case-study-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #8b5cf6;
}

.case-study-section p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #cccccc;
    font-weight: 300;
    line-height: 1.6;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: "✓";
    color: #8b5cf6;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

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

.result-item {
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.result-item h3 {
    font-size: 2.5rem;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-item p {
    color: #666;
    font-weight: 300;
    margin: 0;
}

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

.process-step {
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.process-step h3 {
    font-size: 1.3rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-weight: 500;
}

.process-step p {
    color: #666;
    font-weight: 300;
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design for Case Study */
@media (max-width: 768px) {
    .case-study-hero h1 {
        font-size: 2.5rem;
    }
    
    .case-study-subtitle {
        font-size: 1.1rem;
    }
    
    .case-study-section h2 {
        font-size: 1.8rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .case-study-hero h1 {
        font-size: 2rem;
    }
    
    .case-study-section h2 {
        font-size: 1.6rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}