* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #e2e8f0;
    --text-muted: #cbd5e1;
    --border-color: #334155;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    margin-top: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* Projects Section */
.projects {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: auto;
    width: fit-content;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    border: 1px solid var(--border-color);
    overflow: visible;
    animation: slideDown 0.3s ease;
    position: relative;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    position: relative;
}

#modalImage {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
}

.modal-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.modal-details p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.visit-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.visit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.close {
    position: absolute;
    right: 22px;
    top: 22px;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.close:hover {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    text-align: center;
    background: rgba(99, 102, 241, 0.05);
    border-top: 1px solid var(--border-color);
}

.contact p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Contact Me button inside contact section */
.contact .contact-me {
    display: inline-block;
    margin-top: 1.25rem;
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0 100px;
    background: transparent;
}

.contact-form {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    color: var(--text-light);
    outline: none;
    width: 100%;
}

.contact-form textarea {
    grid-column: 1 / -1;
    min-height: 140px;
    resize: vertical;
}

.contact-form button.cta-button {
    align-self: center;
    padding: 12px 36px;
    border-radius: 40px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .navbar .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar .container {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 0 20px;
    }

    .hero {
        margin-top: 70px;
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero::before,
    .hero::after {
        width: 250px;
        height: 250px;
        opacity: 0.5;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 12px 32px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .projects {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 0;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    #modalImage {
        height: 250px;
        max-height: 40vh;
    }

    .modal-details h2 {
        font-size: 1.5rem;
    }

    .modal-details p {
        font-size: 0.95rem;
    }

    .close {
        right: 15px;
        top: 15px;
        font-size: 1.5rem;
        width: 38px;
        height: 38px;
    }

    .contact {
        padding: 60px 0;
    }

    .contact p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .footer {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .hero {
        margin-top: 60px;
        min-height: 60vh;
        padding: 1rem 0;
    }

    .hero::before,
    .hero::after {
        width: 150px;
        height: 150px;
        opacity: 0.3;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 11px 28px;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .projects {
        padding: 40px 0;
    }

    .projects-grid {
        gap: 1rem;
    }

    .project-card {
        border-radius: 10px;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .project-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .modal-content {
        width: 98%;
        margin: 30% auto;
    }

    .modal-body {
        padding: 1.2rem;
        gap: 1rem;
    }

    #modalImage {
        height: 180px;
        border-radius: 8px;
    }

    .modal-details h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .modal-details p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .visit-button {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .close {
        right: 12px;
        top: 12px;
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }

    .contact {
        padding: 40px 0;
    }

    .contact p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .footer {
        padding: 1.2rem 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .logo {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .contact p {
        font-size: 0.85rem;
    }
}
