@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0;
}

/* Header and Navigation */
header {
    background-color: var(--light);
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

nav a:hover {
    color: var(--primary);
    background-color: rgba(14, 165, 233, 0.1);
}

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

/* Main Content */
.container {
    padding: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

h2.section {
    margin-top: 2.5rem;
    font-size: 1.8rem;
    color: var(--dark);
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

h2.section::before {
    content: '';
    display: inline-block;
    width: 0.6rem;
    height: 1.5rem;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    margin-right: 0.75rem;
    border-radius: 2px;
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Form Styles */
form {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    max-width: 600px;
}

form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

form input, 
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

form input:focus, 
form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
}

form button:hover {
    background-color: var(--primary-dark);
}

form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Visitor Counter */
.visitor-counter {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: white;
    font-weight: 500;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer and Social Icons */
footer {
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem auto;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--primary);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Experience cards */
.experience-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.company-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Subtitle section */
.subtitle {
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.subtitle p {
    display: inline-block;
    margin-right: 1.5rem;
    font-size: 1rem;
    color: var(--gray);
}

.subtitle i {
    margin-right: 0.5rem;
    color: var(--primary);
}

#about {
    padding-bottom: 1rem;
}

/* Fix section spacing */
section {
    margin-bottom: 2rem;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Button transitions */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

button:hover::after {
    transform: translateX(0);
}

/* Print styles for resume export */
@media print {
    header, footer, .visitor-counter, #contact-form, #form-response, #scroll-top, .contact-intro {
        display: none;
    }
    
    body {
        background-color: white;
        padding: 1cm;
        margin: 0;
        font-size: 12pt;
        color: black;
    }
    
    .container {
        padding: 0;
        max-width: 100%;
    }
    
    .experience-card {
        break-inside: avoid;
        box-shadow: none;
        page-break-inside: avoid;
        border: 1px solid #eee;
        margin-bottom: 0.5cm;
    }
    
    h1, h2 {
        page-break-after: avoid;
    }
    
    h2.section::before {
        display: none;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    #contact h2.section {
        page-break-before: always;
    }
    
    .subtitle p {
        display: block;
    }
    
    @page {
        margin: 1cm;
        size: letter portrait;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 0.75rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Scroll to Top Button */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    font-size: 1.25rem;
    transition: var(--transition);
    z-index: 999;
}

#scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    #scroll-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
        font-size: 1rem;
    }
}

/* Contact Introduction */
.contact-intro {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
}

/* PDF Resume Button */
.pdf-button {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30 !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.pdf-button:hover {
    background-color: rgba(255, 59, 48, 0.2) !important;
    color: #ff3b30 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 59, 48, 0.15);
}

.pdf-button i {
    font-size: 0.9rem;
}

/* PDF Button - Direct download */

/* Projects Page Styles */
.projects-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 800px;
}

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

.project-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 200px; /* Fixed height for consistency */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Special styling for CloudCrafted.dev header */
.cloud-resume-image {
    background: white;
}

.cloud-resume-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.project-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-link.primary-link {
    background-color: var(--primary);
    color: white;
}

.project-link.primary-link:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Coming Soon Project Card */
.coming-soon .project-image {
    position: relative;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 41, 59, 0.7);
    color: white;
    font-weight: 600;
    z-index: 2;
}

.coming-soon-overlay i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive projects grid */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
