@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #313a45;
    --font-size-base: 18px;
    --font-size-large: 24px;
    --font-size-xlarge: 36px;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.dark-mode {
    --bg-color: #323952;
    --text-color: #e3e3e3;
    --accent-color: #d5d5d5;
}

#toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}


.toggle-switch {
    width: 60px;
    height: 30px;
    background-color: var(--accent-color);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background-color: white;
    transition: 0.3s;
}


.scroll-down-arrow {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13l5 5 5-5'/%3E%3Cpath d='M7 6l5 5 5-5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: bounce 2s infinite;
    opacity: 0;
    transition: opacity 0.5s ease, background-image 0.3s; /* Added transition for background-image */
}

.scroll-down-arrow.visible {
    opacity: 1;
}

.dark-mode .scroll-down-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13l5 5 5-5'/%3E%3Cpath d='M7 6l5 5 5-5'/%3E%3C/svg%3E");
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 5em;
  }
  
  .icon-link {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  
  .icon-link:hover {
    opacity: 1;
  }
  
  .github-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22'%3E%3C/path%3E%3C/svg%3E");
  }
  
  .linkedin-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'%3E%3C/path%3E%3Crect x='2' y='9' width='4' height='12'%3E%3C/rect%3E%3Ccircle cx='4' cy='4' r='2'%3E%3C/circle%3E%3C/svg%3E");
  }
  
  .email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
  }
  
  .dark-mode .github-icon,
  .dark-mode .linkedin-icon,
  .dark-mode .email-icon {
    filter: invert(1);
  }

#footer {
    text-size-adjust: 10%;
    padding: none;
}


#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 40vh;
}


#hero-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    animation: slideLeft 1.5s ease-out forwards;
}

#hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#hero-text {
    opacity: 0;
    animation: fadeInSlideRight 1.5s ease-out 1.5s forwards;
    padding-left: 50px;
    max-width: 500px;
}

#hero-text h1 {
    font-size: var(--font-size-xlarge);
    margin-bottom: 20px;
}

#hero-text p {
    font-size: var(--font-size-large);
}

nav {
    opacity: 0;
    animation: fadeIn 1.5s ease-out 3s forwards;
    padding: 20px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: var(--font-size-large);
}

section {
    margin: 80px 0;
}

h2 {
    color: var(--accent-color);
    font-size: var(--font-size-xlarge);
    margin-bottom: 30px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--accent-color);
    color: white;
    font-size: var(--font-size-base);
}
  
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes slideLeft {
    from { transform: translateX(50%); }
    to { transform: translateX(0); }
}

@keyframes fadeInSlideRight {
    from { 
        opacity: 0;
        transform: translateX(-50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
    }

    #hero-image {
        width: 300px;
        height: 300px;
        margin-bottom: 30px;
    }

    #hero-text {
        padding-left: 0;
    }

    :root {
        --font-size-base: 16px;
        --font-size-large: 20px;
        --font-size-xlarge: 28px;
    }
}