@charset "utf-8";

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

:root {
    --primary-color: #6366f1;
    --secondary-color: #764ba2;
    --accent-pink: #f093fb;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #0f172a;
    --gradient-elegant: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', 'Inter Tight', 'Poppins', sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--bg-primary);
    font-weight: 400;
}

/* Fixed Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
}

nav.scrolled {
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-elegant);
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Mobile Navigation Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
}

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

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links a {
    font-size: 2rem;
    color: var(--text-light);
    text-decoration: none;
    background: var(--gradient-elegant);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
}

/* Hero Section with Background Effects */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-elegant);
    position: relative;
    overflow: hidden;
}

.hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 25s ease-in-out infinite;
    opacity: 0.7;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite alternate;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: var(--glass);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.shape[data-shape="1"] {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
}

.shape[data-shape="2"] {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-direction: reverse;
    animation-duration: 25s;
}

.shape[data-shape="3"] {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 25%;
    animation-duration: 18s;
}

.shape[data-shape="4"] {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 20%;
    border-radius: 20px;
    animation-duration: 22s;
}

.shape[data-shape="5"] {
    width: 40px;
    height: 40px;
    top: 15%;
    right: 40%;
    animation-direction: reverse;
    animation-duration: 16s;
}

.shape[data-shape="6"] {
    width: 140px;
    height: 140px;
    bottom: 15%;
    right: 10%;
    border-radius: 30px;
    animation-duration: 28s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(-15px) translateX(-10px) rotate(180deg); }
    75% { transform: translateY(-40px) translateX(15px) rotate(270deg); }
}

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

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    margin-top: 2rem;
}

.hero-image {
    width: 16rem;
    max-width: 300px;
    aspect-ratio: 3 / 1;
    border-radius: 999px;
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: cover;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--glass);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    cursor: pointer;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* General Section Layout */
section {
    padding: 40px 20px;
}

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

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    background: var(--gradient-elegant);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    border-bottom: 2px solid var(--primary-color);
    margin: 10px auto 0;
}

/* Project and Portfolio Grids */
.project, .portfolio {
    background: var(--bg-primary);
}

.project-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-item, .portfolio-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-item img, .portfolio-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 5px;
}

.project-item h3, .portfolio-item h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-item p {
    font-size: 1em;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-info, .portfolio-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.process-badge {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.9em;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: transparent;
}

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

.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2 / 1;
    border-radius: 999px;
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1em;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.skill-badge {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
}

/* Contact Section with Background Effects */
.contact {
    background: linear-gradient(135deg, #3b4cb8 0%, #4a2c65 50%, #9c35a8 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.contact::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="contact-grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-grid)"/></svg>');
    animation: float 30s ease-in-out infinite;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

.contact-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.contact-shape {
    position: absolute;
    background: var(--glass);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.contact-shape[data-shape="1"] {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
}

.contact-shape[data-shape="2"] {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-direction: reverse;
    animation-duration: 25s;
}

.contact-shape[data-shape="3"] {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 25%;
    animation-duration: 18s;
}

.contact-shape[data-shape="4"] {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 20%;
    border-radius: 20px;
    animation-duration: 22s;
}

.contact-shape[data-shape="5"] {
    width: 40px;
    height: 40px;
    top: 15%;
    right: 40%;
    animation-direction: reverse;
    animation-duration: 16s;
}

.contact-shape[data-shape="6"] {
    width: 140px;
    height: 140px;
    bottom: 15%;
    right: 10%;
    border-radius: 30px;
    animation-duration: 28s;
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    z-index: 10;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
}

.contact .section-title {
    color: var(--text-light);
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    color: transparent;
    margin-top: 3rem;
    font-weight: 700;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
}

.contact p {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
}

.contact-form {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.submit-btn {
    display: inline-block;
    text-decoration: none;
    padding: 1.2rem 3rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-top: 1rem;
    margin-bottom: 3rem;
    z-index: 11;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* Footer with Background Effects */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    color: var(--text-light);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::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="footer-grid" width="12" height="12" patternUnits="userSpaceOnUse"><path d="M 12 0 L 0 0 0 12" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
    opacity: 0.4;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 2;
}

.footer-center p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
}

/* Animation Effects */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero h1 { font-size: 3rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .project-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .project-item, .portfolio-item { padding: 15px; }
    .project-item h3, .portfolio-item h3 { font-size: 1.3em; }
    .project-item p { font-size: 0.95em; }
    .process-badge { font-size: 0.8em; padding: 5px 10px; }
    .about-content { flex-direction: column; gap: 20px; }
    .about-image { 
        max-width: 360px;
        aspect-ratio: 2 / 1;
    }
    .about-text h3 { font-size: 1.5em; }
    .skill-badge { font-size: 0.95em; padding: 6px 12px; }
    .container { padding: 0 15px; }
    section { padding: 30px 15px; }
    .contact .section-title { margin-top: 2rem; }
    .submit-btn { margin-bottom: 2rem; }
    .hero-image { 
        width: 70vw;
        max-width: 240px;
        aspect-ratio: 3 / 1;
        margin-bottom: 1rem;
    }
    .hero-content { margin-top: 1.5rem; }
    .hero-subtitle { margin-bottom: 1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8em; }
    .project-item h3, .portfolio-item h3 { font-size: 1.2em; }
    .project-item p { font-size: 0.9em; }
    .process-badge { font-size: 0.75em; padding: 4px 8px; }
    .skill-badge { font-size: 0.85em; padding: 5px 10px; }
    .container { padding: 0 10px; }
    section { padding: 20px 10px; }
    .contact .section-title { margin-top: 1.5rem; }
    .submit-btn { margin-bottom: 1.5rem; }
    .hero-image { 
        width: 70vw;
        max-width: 220px;
        aspect-ratio: 3 / 1;
        margin-bottom: 0.8rem;
    }
    .hero-content { margin-top: 1rem; }
    .hero-subtitle { margin-bottom: 0.8rem; }
    .about-image { 
        max-width: 320px;
        aspect-ratio: 2 / 1;
    }
}

@media (min-width: 1920px) {
    .container, .hero, .project, .portfolio, .about, .contact, .footer {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image { 
        width: 16rem;
        max-width: 300px;
        aspect-ratio: 3 / 1;
    }
    .about-image { 
        max-width: 400px;
        aspect-ratio: 2 / 1;
    }
}