/* General Reset & Body */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #fdfdfc;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

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

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #007bff;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #333;
    color: #fff;
    border: 1px solid #bab9b6;
}

.btn-primary:hover {
    background-color: #111;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f7f7f7;
    border-color: #ccc;
}

/* Header & Navigation */
.navbar-container {
    border-bottom: 1px solid #bab9b6;
    background-color: #fdfdfc;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.navbar .logo h5 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.navbar .nav-links {
    display: flex;
    gap: 24px;
}

.navbar .nav-links a {
    font-size: 16px;
    font-weight: 500;
}

/* Hero Section */
.hero-container {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(187, 185, 182, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(187, 185, 182, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(187, 185, 182, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(187, 185, 182, 0.2) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 100px 100px, 120px 120px;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.icon-item {
    position: absolute;
    opacity: 0.4;
    color: #bab9b6;
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: 10%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 20%; right: 15%; animation-delay: 1s; }
.icon-3 { top: 60%; left: 8%; animation-delay: 2s; }
.icon-4 { top: 70%; right: 10%; animation-delay: 3s; }
.icon-5 { top: 35%; left: 85%; animation-delay: 4s; }
.icon-6 { top: 45%; left: 15%; animation-delay: 5s; }

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

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.hero-content .subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin: 12px 0;
}

.hero-content .description {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Sections */
.portfolio, .about, .contact {
    padding: 80px 0;
    border-top: 1px solid #bab9b6;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-title p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 8px auto 0;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-item {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
    border-color: #ddd;
}

.portfolio-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-favicon {
    width: 24px;
    height: 24px;
    margin-bottom: 16px;
}

.portfolio-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.portfolio-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    margin-bottom: 16px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-top: auto;
    color: #007bff;
}

.portfolio-link:hover {
    text-decoration: underline;
}

/* About Section */
.about-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact-direct {
    text-align: left;
}

.contact-direct h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.email-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
}

.social-links {
    text-align: left;
}

.social-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #333;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.social-link:hover {
    border-color: #ddd;
    background-color: #f7f7f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.social-link svg {
    flex-shrink: 0;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #bab9b6;
    background-color: #fbfbf9;
}

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

.footer-bottom p {
    margin: 0;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; /* Simple responsive solution, can be improved with a menu button */
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-link {
        padding: 10px 14px;
        font-size: 15px;
    }

    .floating-icons {
        display: none; /* Hide floating icons on mobile for cleaner look */
    }
} 