/* ===== Reset & Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== Header ===== */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.logo img {
    max-height: 8vh;
    width: auto;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.3em;
    color: #546e7a;
    font-weight: 300;
}

/* ===== Main Content ===== */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.15);
    animation: fadeInUp 1s ease-out 0.3s both;
}

h2 {
    font-size: 2em;
    color: #1976d2;
    margin-bottom: 30px;
    text-align: center;
}

.intro {
    text-align: center;
    color: #546e7a;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(33, 150, 243, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-link {
    text-decoration: none;
    color: #2196f3;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
}

.project-link:hover {
    background: #1976d2;
    color: white;
}

/* ===== Contact Section ===== */
.contact-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    border-radius: 15px;
    margin-top: 40px;
}

.contact-section h3 {
    color: #1976d2;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.contact-section p {
    color: #546e7a;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.email-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #2196f3, #64b5f6);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.4);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    margin-top: 50px;
    color: #78909c;
    font-size: 0.9em;
    padding: 20px 10px;
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Floating Shapes ===== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape1 {
    width: 100px;
    height: 100px;
    background: #2196f3;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape2 {
    width: 150px;
    height: 150px;
    background: #64b5f6;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape3 {
    width: 80px;
    height: 80px;
    background: #2196f3;
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

/* ===== Responsive Media Queries ===== */

/* Tablets */
@media (max-width: 768px) {
    .logo img {
        max-height: 6vh;
    }

    .tagline {
        font-size: 1.1em;
    }

    .main-content {
        padding: 30px 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    .intro {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .floating-shapes {
        display: none;
    }
}

/* Phones */
@media (max-width: 480px) {
    .logo img {
        max-height: 5vh;
    }

    h2 {
        font-size: 1.3em;
    }

    .intro {
        font-size: 0.95em;
    }

    .main-content {
        padding: 20px 10px;
    }

    .contact-section {
        padding: 25px 10px;
    }

    .email-link {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    footer {
        padding: 15px 5px;
    }
}