/* ==========================================================================
   Base styles and reset
   ========================================================================== */
   
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #212121;
    --secondary-color: #f5f5f5;
    --accent-color: #757575;
    --text-color: #333333;
    --light-text: #ffffff;
    --hover-color: #424242;
    --border-color: #e0e0e0;
    --success-color: #43a047;
    --error-color: #e53935;
    --flutter-blue: #027DFD;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.underline {
    width: 8rem;
    height: 0.4rem;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.6rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.primary-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

header {
    background-color: rgba(33, 33, 33, 0.95);
    color: var(--light-text);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.flutter-logo {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    margin-bottom: 0;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 0;
}

.logo {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--light-text) 60%, var(--flutter-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.tt-highlight {
    color: var(--flutter-blue);
    -webkit-text-fill-color: var(--flutter-blue);
    text-fill-color: var(--flutter-blue);
}

.nav-links {
    display: flex;
    gap: 3.5rem;
}

.nav-links li a {
    font-size: 1.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--light-text);
}

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

.nav-links li a.contact-btn {
    background-color: var(--flutter-blue);
    color: var(--light-text);
    padding: 0.8rem 2rem;
    border-radius: 5rem;
}

.nav-links li a.contact-btn:hover {
    background-color: #0268d6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-links li a.contact-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--light-text);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */

.hero {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10rem;
    background-color: var(--secondary-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

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

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #f5f5f5;
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.4rem;
    background-color: var(--flutter-blue);
}

.hero-content h2 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #bdbdbd;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.hero-image img {
    max-width: 45rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ==========================================================================
   About Section Styles
   ========================================================================== */

.about {
    padding: 10rem 0;
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.7rem;
}

.about-details {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
}

.detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail i {
    font-size: 2.4rem;
    color: var(--primary-color);
}

.detail div h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.detail div p {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: var(--accent-color);
}

/* ==========================================================================
   Skills Section Styles
   ========================================================================== */

.skills {
    padding: 10rem 0;
    background-color: #f9f9f9;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.skill-category {
    background-color: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
    gap: 3rem;
}

.skill-item {
    text-align: center;
}

.skill-icon {
    font-size: 3.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5rem;
}

.skill-img {
    width: auto;
    height: 4rem;
    object-fit: contain;
}

.skill-svg {
    width: 3.6rem;
    height: 3.6rem;
    color: var(--primary-color);
    fill: currentColor;
}

.skill-item h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.skill-bar {
    height: 1rem;
    background-color: #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    transition: width 1.5s ease-in-out;
}

/* ==========================================================================
   Projects Section Styles
   ========================================================================== */

.projects {
    padding: 10rem 0;
    background-color: var(--secondary-color);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 3rem;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.project-img {
    overflow: hidden;
    height: 25rem;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 2.5rem;
}

.project-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-tech span {
    padding: 0.5rem 1.5rem;
    background-color: #f5f5f5;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
}

/* ==========================================================================
   Contact Section Styles
   ========================================================================== */

.contact {
    padding: 10rem 0;
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 3rem;
    color: var(--accent-color);
    font-size: 1.7rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-item i {
    font-size: 2.4rem;
    color: var(--primary-color);
}

.contact-item div h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item div p {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

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

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 4rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 33, 33, 0.1);
}

.form-group textarea {
    height: 15rem;
    resize: none;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-quote {
    text-align: center;
    font-style: italic;
    font-size: 1.8rem;
    max-width: 40rem;
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
}

.footer-nav ul li a {
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #bdbdbd;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media screen and (max-width: 1024px) {
    html {
        font-size: 56.25%; /* 9px */
    }

    .about-content, .contact-content {
        flex-direction: column;
    }

    .about-image {
        margin: 0 auto;
        max-width: 70%;
    }

    .about-text {
        text-align: center;
    }

    .about-details {
        justify-content: center;
        flex-wrap: wrap;
        gap: 3rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 50%; /* 8px */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -30rem;
        height: 100vh;
        width: 30rem;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        z-index: 1001;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 2rem 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 4.2rem;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

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

    .project-card {
        max-width: 100%;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    }

    .contact-form {
        padding: 3rem 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .contact-form button {
        width: 100%;
    }
} 