/* Home Section */
.home {
    background: linear-gradient(135deg, var(--light-color) 0%, #e3f2fd 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.home::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.05;
    animation: float 8s ease-in-out infinite reverse;
}

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

.home .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Home Content */
.home-content {
    animation: slideInLeft 1s ease-out;
}

.home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.highlight {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 2s ease-in-out 1s forwards;
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

.intro-text {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.tech-tag {
    background-color: rgba(135, 206, 235, 0.2);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.3);
    border-color: var(--primary-color);
}

.tech-tag:hover::before {
    left: 100%;
}

/* Home Buttons */
.home-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

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

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.3);
}

.btn-secondary:hover::after {
    width: 100%;
}

/* Profile Image */
.home-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--light-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0 auto;
    transition: var(--transition);
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    z-index: -1;
    animation: rotate 10s linear infinite;
    opacity: 0.8;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    z-index: -2;
    animation: rotate 15s linear infinite reverse;
    opacity: 0.3;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.profile-image:hover::before {
    animation-duration: 5s;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(0.1);
}

.profile-image:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatAround 20s linear infinite;
}

.floating-element:nth-child(1) {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: var(--accent-color);
}

.floating-element:nth-child(2) {
    width: 30px;
    height: 30px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    background: var(--secondary-color);
}

.floating-element:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    width: 25px;
    height: 25px;
    top: 30%;
    left: 85%;
    animation-delay: -15s;
    background: var(--accent-color);
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Counter */
.home-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 1.2s both;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 968px) {
    .home .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .home-content h1 {
        font-size: 2.8rem;
    }
    
    .profile-image {
        width: 300px;
        height: 300px;
        order: -1;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .home-btns {
        justify-content: center;
    }
    
    .home-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .home-content h1 {
        font-size: 2.3rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 2rem;
    }
    
    .home-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .home-stats {
        flex-direction: column;
        gap: 1rem;
    }
}