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

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --card-bg: #fff;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: var(--text-color);
    backdrop-filter: blur(5px);
    transition: all var(--transition-speed);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-speed);
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    padding: 6rem 2rem 2rem 2rem;
    color: var(--text-color);
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), #6c5ce7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeIn 1s ease-out;
}

.hero-content > p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    animation: fadeIn 1.2s ease-out;
}

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

/* Sections */
section {
    padding: 5rem 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--card-shadow);
    aspect-ratio: 1 / 1;
    object-position: center;
    transition: transform var(--transition-speed);
    border: 4px solid white;
}

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

.profile-section .social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.profile-section .social-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: fit-content;
}

.profile-section .social-links .btn i {
    font-size: 1.2rem;
}

/* Projects Section */
.projects {
    background-color: #f9f9f9;
    position: relative;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f8f9fa;
    transition: transform var(--transition-speed);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}

.view-details-content {
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 3;
}

.project-card:hover .view-details-content {
    transform: translateY(0);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f0f0;
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    flex-grow: 1;
}

.project-card .logo-img {
    object-fit: contain;
    padding: 2rem;
}

.project-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    margin: 2vh auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

.modal-details {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 0;
}

.modal-details h3 {
    margin: 1rem 0 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.modal-details p {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.modal-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-details li {
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.modal-gallery {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.tech {
    background: #f0f7ff;
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea {
    height: 150px;
    resize: vertical;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

form.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    transform: translateY(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-speed);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-section {
        margin-bottom: 2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .contact-content {
        width: 100%;
    }
    
    form {
        width: 100%;
    }
    
    .hero {
        padding-top: 5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content > p {
        font-size: 1.2rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }
}

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    transition: all var(--transition-speed);
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Interests Section */
.interests-container {
    margin-top: 3rem;
    text-align: center;
}

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

.interest-category {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.interest-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.interest-category h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.interest-category p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Notification Popup */
.popup {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    animation: slideIn 0.3s ease-out;
}

.popup-content {
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
}

.popup.success .popup-content {
    border-left: 4px solid #28a745;
}

.popup.error .popup-content {
    border-left: 4px solid #dc3545;
}

.popup-message {
    margin-right: 1rem;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition-speed);
}

.popup-close:hover {
    color: var(--text-color);
}

@keyframes slideIn {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* Placeholder Image for Projects */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6c5ce7, #0984e3);
}

/* Project-specific gradients */
.placeholder-image.swirley-gradient {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.placeholder-image.wheel-gradient {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.placeholder-image.dkaya-gradient {
    background: linear-gradient(135deg, #43cea2, #185a9d);
}

.placeholder-image.invoice-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.placeholder-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform var(--transition-speed);
}

.project-card:hover .placeholder-content {
    transform: scale(1.05);
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-placeholder {
    height: 300px;
    border-radius: var(--border-radius);
} 